diff options
Diffstat (limited to 'modules/core/os_oline.cpp')
-rw-r--r-- | modules/core/os_oline.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/core/os_oline.cpp b/modules/core/os_oline.cpp index c3d0e4cae..e56133ec3 100644 --- a/modules/core/os_oline.cpp +++ b/modules/core/os_oline.cpp @@ -45,24 +45,24 @@ class CommandOSOLine : public Command ircdproto->SendGlobops(OperServ, "\2%s\2 used OLINE for %s", u->nick.c_str(), nick.c_str()); } else - this->OnSyntaxError(u, ""); + this->OnSyntaxError(source, ""); return MOD_CONT; } - bool OnHelp(User *u, const Anope::string &subcommand) + bool OnHelp(CommandSource &source, const Anope::string &subcommand) { - u->SendMessage(OperServ, OPER_HELP_OLINE); + source.Reply(OPER_HELP_OLINE); return true; } - void OnSyntaxError(User *u, const Anope::string &subcommand) + void OnSyntaxError(CommandSource &source, const Anope::string &subcommand) { - SyntaxError(OperServ, u, "OLINE", OPER_OLINE_SYNTAX); + SyntaxError(source, "OLINE", OPER_OLINE_SYNTAX); } - void OnServHelp(User *u) + void OnServHelp(CommandSource &source) { - u->SendMessage(OperServ, OPER_HELP_CMD_OLINE); + source.Reply(OPER_HELP_CMD_OLINE); } }; |