]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix ACCEPT propagation bug when it got a nick prefixed with +
authorDaniel Vassdal <shutter@canternet.org>
Sat, 7 Dec 2013 20:44:10 +0000 (12:44 -0800)
committerattilamolnar <attilamolnar@hush.com>
Mon, 9 Dec 2013 21:15:48 +0000 (22:15 +0100)
Fixes #696
Does not apply to 2.2 due to Attila's rewrite of the module

src/modules/m_callerid.cpp

index 37787b525ee5e1a504dca701b96cba852cc835cd..74428f543a58005532786799de0ca79123fa3006 100644 (file)
@@ -171,6 +171,9 @@ public:
                                dash = true;
                                tok.erase(0, 1); // Remove the dash.
                        }
+                       else if (tok[0] == '+')
+                               tok.erase(0, 1);
+
                        User* u = ServerInstance->FindNick(tok);
                        if ((!u) || (u->registered != REG_ALL) || (u->quitting) || (IS_SERVER(u)))
                                continue;