Commit 63892163 authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

[GATE-82] Added support for setting icq encoding. (thanks nikitine!)

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk/src/plugins/gateway@6280 b35dd754-fafc-0310-a699-88a17e54d16e
parent a29a41d9
......@@ -14,6 +14,7 @@ import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import net.kano.joscar.ByteBlock;
import net.kano.joscar.OscarTools;
import net.kano.joscar.net.ConnDescriptor;
import net.kano.joscar.flapcmd.SnacCommand;
import net.kano.joscar.snac.SnacRequest;
......@@ -62,6 +63,7 @@ public class OSCARSession extends TransportSession {
public OSCARSession(Registration registration, JID jid, OSCARTransport transport, Integer priority) {
super(registration, jid, transport, priority);
this.propertyPrefix = "plugin.gateway."+transport.getType().toString();
OscarTools.setDefaultCharset(JiveGlobals.getProperty(this.propertyPrefix+".encoding", "ISO8859-1"));
}
private BOSConnection bosConn = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment