diff options
| author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 14:12:22 +0000 |
|---|---|---|
| committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 14:12:22 +0000 |
| commit | e87a9e0ac602ab15ca7ef85941b0632aadc324ec (patch) | |
| tree | e13e375b442a4279de78b309a5f5fedc02ce3890 /include/services.h | |
| parent | f0caf3a4e0d37d8e5550923b9ec14eed640ff838 (diff) | |
Convert SWhois, SERVER, EOB..
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1313 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include/services.h')
| -rw-r--r-- | include/services.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/include/services.h b/include/services.h index 0d595d1a1..9e46b88c5 100644 --- a/include/services.h +++ b/include/services.h @@ -1335,15 +1335,16 @@ class IRCDProto { } virtual void SendSVSJoin(const char *, const char *, const char *, const char *) { } virtual void SendSVSPart(const char *, const char *, const char *) { } - virtual void cmd_swhois(const char *, const char *, const char *) { } - virtual void cmd_eob() { } - virtual void cmd_server(const char *, int, const char *) = 0; - virtual void cmd_jupe(const char *jserver, const char *who, const char *reason) + virtual void SendSWhois(const char *, const char *, const char *) { } + virtual void SendEOB() { } + virtual void SendServer(const char *, int, const char *) = 0; + virtual void SendJupe(const char *jserver, const char *who, const char *reason) { + // XXX: this should NOT be done here. protocol modules are *only* for protocol. -- w00t char rbuf[256]; snprintf(rbuf, sizeof(rbuf), "Juped by %s%s%s", who, reason ? ": " : "", reason ? reason : ""); if (findserver(servlist, jserver)) SendSquit(jserver, rbuf); - cmd_server(jserver, 2, rbuf); + SendServer(jserver, 2, rbuf); new_server(me_server, jserver, rbuf, SERVER_JUPED, NULL); } virtual void set_umode(User *, int, const char **) = 0; |
