diff options
author | Adam <Adam@anope.org> | 2010-11-07 18:06:02 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-11-07 18:06:02 -0500 |
commit | 721ef7d34550f67dde8a56bb2131571436f03802 (patch) | |
tree | 5b7897914bd86ee1cc6d2d2797e17f6545d0559d | |
parent | 5209e739955d260d31fea98d13800a98d1bb3bec (diff) |
Fixed the OnPostCommand event overload in db_mysql
-rw-r--r-- | modules/extra/db_mysql.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/extra/db_mysql.cpp b/modules/extra/db_mysql.cpp index fa8ede0d4..9e42f6055 100644 --- a/modules/extra/db_mysql.cpp +++ b/modules/extra/db_mysql.cpp @@ -946,9 +946,9 @@ class DBMySQL : public Module return EVENT_CONTINUE; } - void OnPostCommand(User *u, const Anope::string &service, const Anope::string &command, const std::vector<Anope::string> ¶ms) + void OnPostCommand(User *u, BotInfo *service, const Anope::string &command, const std::vector<Anope::string> ¶ms) { - if (service == Config->s_NickServ) + if (service == NickServ) { if (u->Account() && ((command.equals_ci("SET") && !params.empty()) || (command.equals_ci("SASET") && u->Account()->HasCommand("nickserv/saset") && params.size() > 1))) { @@ -978,7 +978,7 @@ class DBMySQL : public Module } } } - else if (service == Config->s_ChanServ) + else if (service == ChanServ) { if (command.equals_ci("SET") && u->Account() && params.size() > 1) { @@ -1019,7 +1019,7 @@ class DBMySQL : public Module } } } - else if (service == Config->s_BotServ) + else if (service == BotServ) { if (command.equals_ci("KICK") && params.size() > 2) { |