summaryrefslogtreecommitdiff
path: root/src/messages.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-10-09 16:27:16 -0400
committerAdam <Adam@anope.org>2013-10-09 16:27:16 -0400
commite1d460e2114295dc7a23de45c68fe2e8a4102ce8 (patch)
treed1ce9e772b7c791eab16da5403a233aaeb337285 /src/messages.cpp
parent9ea6fb25b9b66fb5163b9245aa0bcae732160f14 (diff)
Call OnBotPrivmsg after checking if the message is a ctcp, not before. fix typo in opersrev.example.conf
Diffstat (limited to 'src/messages.cpp')
-rw-r--r--src/messages.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/messages.cpp b/src/messages.cpp
index 67f669a43..0e7d03ce1 100644
--- a/src/messages.cpp
+++ b/src/messages.cpp
@@ -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);
}