1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 00:23:12 +02:00

Fixed the OnPostCommand event overload in db_mysql

This commit is contained in:
Adam
2010-11-07 18:06:02 -05:00
parent 5209e73995
commit 721ef7d345
+4 -4
View File
@@ -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> &params)
void OnPostCommand(User *u, BotInfo *service, const Anope::string &command, const std::vector<Anope::string> &params)
{
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)
{