From 085cd4278f0f495c6d008a3d157026b33a23b787 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 16 Jul 2006 15:08:59 +0000 Subject: Created new class irc::commasepstream. Will read comma seperated lists and works identically to irc::tokenstream It's re-entrant so we can run two of them together for JOIN git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4412 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_privmsg.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/cmd_privmsg.cpp') diff --git a/src/cmd_privmsg.cpp b/src/cmd_privmsg.cpp index e74495bb6..30d766e82 100644 --- a/src/cmd_privmsg.cpp +++ b/src/cmd_privmsg.cpp @@ -40,8 +40,9 @@ void cmd_privmsg::Handle (const char** parameters, int pcnt, userrec *user) user->idle_lastmsg = TIME; - if (ServerInstance->Parser->LoopCall(this,parameters,pcnt,user,0,pcnt-2,0)) + if (ServerInstance->Parser->LoopCall(user, this, parameters, pcnt, 0)) return; + if ((parameters[0][0] == '$') && ((*user->oper) || (is_uline(user->server)))) { // notice to server mask -- cgit v1.2.3