1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 23:06:39 +02:00

Call OnBotPrivmsg after checking if the message is a ctcp, not before. fix typo in opersrev.example.conf

This commit is contained in:
Adam
2013-10-09 16:27:16 -04:00
parent 9ea6fb25b9
commit e1d460e211
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -330,11 +330,6 @@ void Privmsg::Run(MessageSource &source, const std::vector<Anope::string> &param
if (bi)
{
EventReturn MOD_RESULT;
FOREACH_RESULT(OnBotPrivmsg, MOD_RESULT, (u, bi, message));
if (MOD_RESULT == EVENT_STOP)
return;
if (message[0] == '\1' && message[message.length() - 1] == '\1')
{
if (message.substr(0, 6).equals_ci("\1PING "))
@@ -351,6 +346,11 @@ void Privmsg::Run(MessageSource &source, const std::vector<Anope::string> &param
}
return;
}
EventReturn MOD_RESULT;
FOREACH_RESULT(OnBotPrivmsg, MOD_RESULT, (u, bi, message));
if (MOD_RESULT == EVENT_STOP)
return;
bi->OnMessage(u, message);
}