mirror of
https://github.com/anope/anope.git
synced 2026-07-03 20:03:12 +02:00
Route message tags into more message functions.
This commit is contained in:
+4
-4
@@ -269,7 +269,7 @@ void Notice::Run(MessageSource &source, const std::vector<Anope::string> ¶ms
|
||||
BotInfo *bi = BotInfo::Find(params[0]);
|
||||
if (!bi)
|
||||
return;
|
||||
FOREACH_MOD(OnBotNotice, (u, bi, message));
|
||||
FOREACH_MOD(OnBotNotice, (u, bi, message, tags));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -312,7 +312,7 @@ void Privmsg::Run(MessageSource &source, const std::vector<Anope::string> ¶m
|
||||
Channel *c = Channel::Find(receiver);
|
||||
if (c)
|
||||
{
|
||||
FOREACH_MOD(OnPrivmsg, (u, c, message));
|
||||
FOREACH_MOD(OnPrivmsg, (u, c, message, tags));
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -362,11 +362,11 @@ void Privmsg::Run(MessageSource &source, const std::vector<Anope::string> ¶m
|
||||
}
|
||||
|
||||
EventReturn MOD_RESULT;
|
||||
FOREACH_RESULT(OnBotPrivmsg, MOD_RESULT, (u, bi, message));
|
||||
FOREACH_RESULT(OnBotPrivmsg, MOD_RESULT, (u, bi, message, tags));
|
||||
if (MOD_RESULT == EVENT_STOP)
|
||||
return;
|
||||
|
||||
bi->OnMessage(u, message);
|
||||
bi->OnMessage(u, message, tags);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user