]> arthur.barton.de Git - ngircd.git/commitdiff
Send RPL_REHASHING if rehash was accepted
authorFederico G. Schwindt <fgsch@lodoss.net>
Wed, 26 Sep 2012 12:13:10 +0000 (13:13 +0100)
committerAlexander Barton <alex@barton.de>
Wed, 26 Sep 2012 22:07:40 +0000 (00:07 +0200)
(cherry picked from commit f1b171a09cd076f743a7fff221fa7aa752abb374)

src/ngircd/irc-oper.c
src/ngircd/messages.h

index 21577f00438956992141cf6c255767763fcdd409..237107f69b8f56c828f212122da415cee247ba1b 100644 (file)
@@ -183,6 +183,8 @@ IRC_REHASH( CLIENT *Client, REQUEST *Req )
 
        Log(LOG_NOTICE|LOG_snotice, "Got REHASH command from \"%s\" ...",
            Client_Mask(Client));
+       IRC_WriteStrClient(Client, RPL_REHASHING_MSG, Client_ID(Client));
+
        raise(SIGHUP);
 
        return CONNECTED;
index d99930faa5d079995932ba3140d207c08e20e5c9..f9140a4b8b6e2fea2dba0450735247f07b9e1ecb 100644 (file)
@@ -94,6 +94,7 @@
 #define RPL_ENDOFMOTD_MSG              "376 %s :End of MOTD command"
 #define RPL_WHOISHOST_MSG              "378 %s %s :is connecting from *@%s %s"
 #define RPL_YOUREOPER_MSG              "381 %s :You are now an IRC Operator"
+#define RPL_REHASHING_MSG              "382 %s :Rehashing"
 #define RPL_YOURESERVICE_MSG           "383 %s :You are service %s"
 #define RPL_TIME_MSG                   "391 %s %s :%s"
 #define RPL_HOSTHIDDEN_MSG             "396 %s %s :is your displayed hostname now"