From 3cf223c49bb2291e06ed160c738bbb7411fc8f01 Mon Sep 17 00:00:00 2001 From: psychon Date: Sat, 1 Aug 2009 09:03:29 +0000 Subject: [PATCH] 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 --- User.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/User.cpp b/User.cpp index 084a6d2b..cecf2554 100644 --- a/User.cpp +++ b/User.cpp @@ -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); } }