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 | 54e65d003efff715a71088584443262d5655fb90 (patch) | |
tree | d3d9ea28be9ef1cac9c23936d4646de70821130e /include/services.h | |
parent | e8cd183ed36a5014ddbd1a44dde8e311bb44f35a (diff) |
Added cmd_chg_nick() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1246 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include/services.h')
-rw-r--r-- | include/services.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/services.h b/include/services.h index 9c835c349..2c8f9465a 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_chg_nick)(const char *oldnick, const char *newnick); 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); @@ -1350,6 +1349,11 @@ class IRCDProtoNew { send_cmd(NULL, "SQUIT %s :%s", servname, message); } virtual void cmd_svso(const char *, const char *, const char *) { } + virtual void cmd_chg_nick(const char *oldnick, const char *newnick) + { + if (!oldnick || !newnick) return; + send_cmd(oldnick, "NICK %s", newnick); + } }; /*************************************************************************/ |