diff options
Diffstat (limited to 'modules/core/cs_invite.cpp')
-rw-r--r-- | modules/core/cs_invite.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/core/cs_invite.cpp b/modules/core/cs_invite.cpp index 48425e387..011a0bcf3 100644 --- a/modules/core/cs_invite.cpp +++ b/modules/core/cs_invite.cpp @@ -20,16 +20,16 @@ class CommandCSInvite : public Command { } - CommandReturn Execute(User *u, const std::vector<ci::string> ¶ms) + CommandReturn Execute(User *u, const std::vector<Anope::string> ¶ms) { - const char *chan = params[0].c_str(); + Anope::string chan = params[0]; Channel *c; ChannelInfo *ci; User *u2; if (!(c = findchan(chan))) { - notice_lang(Config.s_ChanServ, u, CHAN_X_NOT_IN_USE, chan); + notice_lang(Config.s_ChanServ, u, CHAN_X_NOT_IN_USE, chan.c_str()); return MOD_CONT; } @@ -56,20 +56,20 @@ class CommandCSInvite : public Command notice_lang(Config.s_ChanServ, u, CHAN_INVITE_ALREADY_IN, c->name.c_str()); else { - ircdproto->SendInvite(whosends(ci), chan, u2->nick.c_str()); + ircdproto->SendInvite(whosends(ci), chan, u2->nick); notice_lang(whosends(ci)->nick, u, CHAN_INVITE_OTHER_SUCCESS, u2->nick.c_str(), c->name.c_str()); notice_lang(whosends(ci)->nick, u2, CHAN_INVITE_SUCCESS, c->name.c_str()); } return MOD_CONT; } - bool OnHelp(User *u, const ci::string &subcommand) + bool OnHelp(User *u, const Anope::string &subcommand) { notice_help(Config.s_ChanServ, u, CHAN_HELP_INVITE); return true; } - void OnSyntaxError(User *u, const ci::string &subcommand) + void OnSyntaxError(User *u, const Anope::string &subcommand) { syntax_error(Config.s_ChanServ, u, "INVITE", CHAN_INVITE_SYNTAX); } @@ -83,7 +83,7 @@ class CommandCSInvite : public Command class CSInvite : public Module { public: - CSInvite(const std::string &modname, const std::string &creator) : Module(modname, creator) + CSInvite(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator) { this->SetAuthor("Anope"); this->SetType(CORE); |