Invite/ban list length checks.
[silc.git] / apps / silcd / server_util.c
index 790979cdf208808b9f5ec6706291010420d357c4..1c8dd181771da0b40fd150ef4e466bf15bcff7f0 100644 (file)
@@ -1854,7 +1854,7 @@ void silc_server_inviteban_process(SilcServer server, SilcHashTable list,
   }
 
   /* Delete information to invite list */
-  if (action && list) {
+  if (action == 0x01 && list) {
     /* Now delete the arguments from invite list */
     tmp = silc_argument_get_first_arg(args, &type, &len);
     while (tmp) {