]> granicus.if.org Git - ngircd/commitdiff
Correctly detect errors when handling "MODE x" commands
authorAlexander Barton <alex@barton.de>
Mon, 14 Feb 2011 00:44:40 +0000 (01:44 +0100)
committerAlexander Barton <alex@barton.de>
Mon, 14 Feb 2011 00:44:40 +0000 (01:44 +0100)
src/ngircd/irc-mode.c

index 57af0bf6c152e6cb1c75e425e4b0b02ff0014653..50b0db0476cf4eab116d8192606843ac0c351fe2 100644 (file)
@@ -204,7 +204,7 @@ Client_Mode( CLIENT *Client, REQUEST *Req, CLIENT *Origin, CLIENT *Target )
 
                        case 'x': /* Cloak hostname */
                                if (Client_HasMode(Client, 'r'))
-                                       IRC_WriteStrClient(Origin,
+                                       ok = IRC_WriteStrClient(Origin,
                                                           ERR_RESTRICTED_MSG,
                                                           Client_ID(Origin));
                                else