mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-13 20:49:02 -04:00
Fix to event params
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3051 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
bb230ed4e3
commit
a3cb2921f5
@ -124,7 +124,7 @@ void cmd_notice::Handle (char **parameters, int pcnt, userrec *user)
|
||||
|
||||
ChanExceptSender(chan, user, status, "NOTICE %s :%s", chan->name, parameters[1]);
|
||||
|
||||
FOREACH_MOD(I_OnUserNotice,OnUserNotice(user,chan,TYPE_CHANNEL,parameters[1]));
|
||||
FOREACH_MOD(I_OnUserNotice,OnUserNotice(user,chan,TYPE_CHANNEL,parameters[1],status));
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -152,7 +152,7 @@ void cmd_notice::Handle (char **parameters, int pcnt, userrec *user)
|
||||
WriteTo(user, dest, "NOTICE %s :%s", dest->nick, parameters[1]);
|
||||
}
|
||||
|
||||
FOREACH_MOD(I_OnUserNotice,OnUserNotice(user,dest,TYPE_USER,parameters[1]));
|
||||
FOREACH_MOD(I_OnUserNotice,OnUserNotice(user,dest,TYPE_USER,parameters[1],0));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -122,7 +122,7 @@ void cmd_privmsg::Handle (char **parameters, int pcnt, userrec *user)
|
||||
}
|
||||
|
||||
ChanExceptSender(chan, user, status, "PRIVMSG %s :%s", chan->name, parameters[1]);
|
||||
FOREACH_MOD(I_OnUserMessage,OnUserMessage(user,chan,TYPE_CHANNEL,parameters[1]));
|
||||
FOREACH_MOD(I_OnUserMessage,OnUserMessage(user,chan,TYPE_CHANNEL,parameters[1],status));
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -156,7 +156,7 @@ void cmd_privmsg::Handle (char **parameters, int pcnt, userrec *user)
|
||||
WriteTo(user, dest, "PRIVMSG %s :%s", dest->nick, parameters[1]);
|
||||
}
|
||||
|
||||
FOREACH_MOD(I_OnUserMessage,OnUserMessage(user,dest,TYPE_USER,parameters[1]));
|
||||
FOREACH_MOD(I_OnUserMessage,OnUserMessage(user,dest,TYPE_USER,parameters[1],0));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user