-QString IrcChannel::userMode(const QString &nick) const {
- return userMode(networkInfo->ircUser(nick));
+QString IrcChannel::decodeString(const QByteArray &text) const {
+ if(!codecForDecoding()) return network->decodeString(text);
+ return ::decodeString(text, _codecForDecoding);
+}
+
+QByteArray IrcChannel::encodeString(const QString &string) const {
+ if(codecForEncoding()) {
+ return _codecForEncoding->fromUnicode(string);
+ }
+ return network->encodeString(string);