From de6602f25485d0ba4c02426ab982fa8ff8a224ae Mon Sep 17 00:00:00 2001 From: Haru Date: Tue, 6 Aug 2013 21:34:31 +0200 Subject: Added support for Nick Server GHOST command Credits to Yommy for the idea Signed-off-by: Haru --- src/map/irc-bot.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/map/irc-bot.c') diff --git a/src/map/irc-bot.c b/src/map/irc-bot.c index fe7bf4bd4..b17015b66 100644 --- a/src/map/irc-bot.c +++ b/src/map/irc-bot.c @@ -77,6 +77,9 @@ int irc_join_timer(int tid, unsigned int tick, int id, intptr_t data) { if( hChSys.irc_nick_pw[0] != '\0' ) { sprintf(send_string, "PRIVMSG NICKSERV : IDENTIFY %s", hChSys.irc_nick_pw); ircbot->send(send_string); + if( hChSys.irc_use_ghost ) { + sprintf(send_string, "PRIVMSG NICKSERV : GHOST %s %s", hChSys.irc_nick, hChSys.irc_nick_pw); + } } sprintf(send_string, "JOIN %s", hChSys.irc_channel); -- cgit v1.2.3-70-g09d2