commit - 796dcf6a6203226d2a06635e94b4231b2c85f5b3
commit + b8643477ba74bc09a896883f85a1325ec83ecc5e
blob - 2ebbc91d5d9b81cba64cada755240353e8f9b5e0
blob + 9b2b53d0845b90a83faf272b1baf1a52c5c71e6f
--- src/ngircd/irc-mode.c
+++ src/ngircd/irc-mode.c
if (arg_arg > mode_arg) {
/* modify list */
if (modeok) {
- if (set)
- Add_Ban_Invite(*mode_ptr, Origin, Client, Channel, Req->argv[arg_arg]);
- else
- Del_Ban_Invite(*mode_ptr, Origin, Client, Channel, Req->argv[arg_arg]);
+ ok = set ? Add_Ban_Invite(*mode_ptr, Origin, Client, Channel, Req->argv[arg_arg])
+ : Del_Ban_Invite(*mode_ptr, Origin, Client, Channel, Req->argv[arg_arg]);
} else {
ok = IRC_WriteStrClient(Origin, ERR_CHANOPRIVSNEEDED_MSG,
Client_ID(Origin), Channel_Name(Channel));