mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-26 10:52:16 -05:00
PircBot Patch: Set nickname outside of connect loop. Otherwise server replies setting the nickname during connect may be overwritten (bugfix for irssi proxy)
This commit is contained in:
parent
b3e26c626b
commit
f6a518462c
@ -203,6 +203,10 @@ public abstract class PircBot implements ReplyConstants {
|
|||||||
|
|
||||||
_inputThread = new InputThread(this, socket, breader, bwriter);
|
_inputThread = new InputThread(this, socket, breader, bwriter);
|
||||||
|
|
||||||
|
// XXX: PircBot Patch - Set nick before loop. otherwise we overwrite it in the loop again and again
|
||||||
|
// But maybe we got a new nickname from the server (bouncers!)
|
||||||
|
this.setNick(nick);
|
||||||
|
|
||||||
// Read stuff back from the server to see if we connected.
|
// Read stuff back from the server to see if we connected.
|
||||||
String line = null;
|
String line = null;
|
||||||
int tries = 1;
|
int tries = 1;
|
||||||
@ -240,7 +244,6 @@ public abstract class PircBot implements ReplyConstants {
|
|||||||
throw new IrcException("Could not log into the IRC server: " + line);
|
throw new IrcException("Could not log into the IRC server: " + line);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.setNick(nick);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// XXX: PircBot patch - We are not connected to server if nothing received
|
// XXX: PircBot patch - We are not connected to server if nothing received
|
||||||
|
Loading…
Reference in New Issue
Block a user