mirror of
https://github.com/znc/znc.git
synced 2026-05-08 14:24:45 +02:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user