diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:12 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:12 +0000 |
commit | 4fc8f14f19c9d7c70d5272078ccab47945c8064f (patch) | |
tree | c980686e84223b4dac7492f28cf2daf6a42012cf /include | |
parent | 54e65d003efff715a71088584443262d5655fb90 (diff) |
Added cmd_svsnick() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1247 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include')
-rw-r--r-- | include/extern.h | 1 | ||||
-rw-r--r-- | include/services.h | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/include/extern.h b/include/extern.h index ccf71c8d2..3a26bd193 100644 --- a/include/extern.h +++ b/include/extern.h @@ -623,7 +623,6 @@ E void pmodule_cmd_318(void (*func) (const char *source, const char *who)); E void pmodule_cmd_242(void (*func) (const char *buf)); E void pmodule_cmd_243(void (*func) (const char *buf)); E void pmodule_cmd_211(void (*func) (const char *buf)); -E void pmodule_cmd_svsnick(void (*func) (const char *source, const char *guest, time_t when)); E void pmodule_cmd_vhost_on(void (*func) (const char *nick, const char *vIdent, const char *vhost)); E void pmodule_cmd_connect(void (*func) (int servernum)); E void pmodule_cmd_svshold(void (*func) (const char *nick)); diff --git a/include/services.h b/include/services.h index 2c8f9465a..ba93bc0ce 100644 --- a/include/services.h +++ b/include/services.h @@ -1073,7 +1073,6 @@ typedef struct ircd_proto_ { void (*ircd_cmd_242)(const char *buf); void (*ircd_cmd_243)(const char *buf); void (*ircd_cmd_211)(const char *buf); - void (*ircd_cmd_svsnick)(const char *source, const char *guest, time_t when); void (*ircd_cmd_vhost_on)(const char *nick, const char *vIdent, const char *vhost); void (*ircd_cmd_connect)(int servernum); void (*ircd_cmd_svshold)(const char *nick); @@ -1354,6 +1353,11 @@ class IRCDProtoNew { if (!oldnick || !newnick) return; send_cmd(oldnick, "NICK %s", newnick); } + virtual void cmd_svsnick(const char *oldnick, const char *newnick, time_t when) + { + if (!oldnick || !newnick) return; + send_cmd(NULL, "SVSNICK %s %s :%ld", oldnick, newnick, static_cast<long>(when)); + } }; /*************************************************************************/ |