diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:11 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:11 +0000 |
commit | 82722cf5d7d56a51830f797b5396908387107b64 (patch) | |
tree | b05b3223893de9bfa10e2bf38b17907652a05aaa /src/protocol/charybdis.c | |
parent | 44f01ce8d5e604f5539f55d393ec9df17d14ffd7 (diff) |
Added cmd_quit() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1236 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/charybdis.c')
-rw-r--r-- | src/protocol/charybdis.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/protocol/charybdis.c b/src/protocol/charybdis.c index 4b04324e7..658c47bd1 100644 --- a/src/protocol/charybdis.c +++ b/src/protocol/charybdis.c @@ -1345,17 +1345,11 @@ void CharybdisProto::cmd_bot_chan_mode(const char *nick, const char *chan) } /* QUIT */ -void charybdis_cmd_quit(const char *source, const char *buf) +void CharybdisProto::cmd_quit(const char *source, const char *buf) { - Uid *ud; - ud = find_uid(source); - - if (buf) { - send_cmd((UseTS6 ? (ud ? ud->uid : source) : source), "QUIT :%s", - buf); - } else { - send_cmd((UseTS6 ? (ud ? ud->uid : source) : source), "QUIT"); - } + Uid *ud = find_uid(source); + if (buf) send_cmd(UseTS6 ? (ud ? ud->uid : source) : source, "QUIT :%s", buf); + else send_cmd(UseTS6 ? (ud ? ud->uid : source) : source, "QUIT"); } /* PONG */ @@ -1738,7 +1732,6 @@ void moduleAddAnopeCmds() pmodule_cmd_375(charybdis_cmd_375); pmodule_cmd_376(charybdis_cmd_376); pmodule_cmd_351(charybdis_cmd_351); - pmodule_cmd_quit(charybdis_cmd_quit); pmodule_cmd_pong(charybdis_cmd_pong); pmodule_cmd_join(charybdis_cmd_join); pmodule_cmd_unsqline(charybdis_cmd_unsqline); |