Send a correct MODE to new clients

The source of commands is supposed to be a complete nick mask, but we only used
the nick.

Thanks to flakes for (kinda) noticing this.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1584 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2009-08-01 09:03:29 +00:00
parent d8c9de8aa8
commit 3cf223c49b
+1 -1
View File
@@ -274,7 +274,7 @@ void CUser::UserConnected(CClient* pClient) {
sUserMode += *it;
}
if (!sUserMode.empty()) {
pClient->PutClient(":" + GetIRCNick().GetNick() + " MODE " + GetIRCNick().GetNick() + " :+" + sUserMode);
pClient->PutClient(":" + GetIRCNick().GetNickMask() + " MODE " + GetIRCNick().GetNick() + " :+" + sUserMode);
}
}