diff --git a/dll/autocycle/autocycle.c b/dll/autocycle/autocycle.c index 8c7fafb..2c905b2 100644 --- a/dll/autocycle/autocycle.c +++ b/dll/autocycle/autocycle.c @@ -21,7 +21,7 @@ int auto_cycle(IrcCommandDll *interp, char *command, char *args, char *subargs) { char * channel = current_window->current_channel; - int netsplit = (int)next_arg(args, &args); + int netsplit = (next_arg(args, &args) != NULL); int this_server = current_window->server; ChannelList * chan = lookup_channel(channel, this_server, 0); NickList * tmp = NULL;