1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-11 19:45:01 -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:
Sebastian Kaspari 2011-02-09 00:40:31 +01:00
parent b3e26c626b
commit f6a518462c

View File

@ -203,6 +203,10 @@ public abstract class PircBot implements ReplyConstants {
_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.
String line = null;
int tries = 1;
@ -240,7 +244,6 @@ public abstract class PircBot implements ReplyConstants {
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