commit adfa968f995c9f65130b96efef2cf389c1017efe from: Alexander Barton date: Mon Feb 14 00:44:40 2011 UTC Correctly detect errors when handling "MODE x" commands commit - 07f241ff6d3afee88d6c6b3e2ed1e195c0367c91 commit + adfa968f995c9f65130b96efef2cf389c1017efe blob - 57af0bf6c152e6cb1c75e425e4b0b02ff0014653 blob + 50b0db0476cf4eab116d8192606843ac0c351fe2 --- src/ngircd/irc-mode.c +++ src/ngircd/irc-mode.c @@ -204,7 +204,7 @@ Client_Mode( CLIENT *Client, REQUEST *Req, CLIENT *Ori case 'x': /* Cloak hostname */ if (Client_HasMode(Client, 'r')) - IRC_WriteStrClient(Origin, + ok = IRC_WriteStrClient(Origin, ERR_RESTRICTED_MSG, Client_ID(Origin)); else