Skip to content

Commit

Permalink
[Engine-IRC] Fixed ArgumentNullException in _Say()
Browse files Browse the repository at this point in the history
  • Loading branch information
meebey committed Aug 14, 2012
1 parent 64b90e4 commit a7ff73a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Engine-IRC/Protocols/Irc/IrcProtocolManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,10 @@ public void Connect(FrontendManager fm)
Session.AddMessageToChat(_NetworkChat, builder.ToMessage());
}
_IrcClient.Login(_Nicknames, realname, 0, _Username, _Password);

// set Me property very early as we might need to know who we
// are before the registration was confirmed in _OnRegistered()
Me = CreatePerson(_IrcClient.Nickname);

foreach (string command in (string[]) Session.UserConfig["Connection/OnConnectCommands"]) {
if (command.Length == 0) {
continue;
Expand Down

0 comments on commit a7ff73a

Please sign in to comment.