if(!irc_cmd) {
event_raw(client, from, cmd, argv, argc);
} else if(!ret) {
- fprintf(stderr,"PARSE ERROR: %s", cmd);
+ fprintf(stderr,"PARSE ERROR: %s\n", cmd);
}
}
}
static IRC_CMD(raw_quit) {
- if(from == NULL || argc < 2) return 0;
+ if(from == NULL || argc < 1) return 0;
struct UserNode *user = getUserByMask(from);
if(user == NULL) return 0;
delUser(user, 0); //a little bit crazy, but we want to delete the user on the channel's userlists - but not the users channel list
- event_quit(user, argv[1]);
+ event_quit(user, argv[0]);
if(user->flags & USERFLAG_ISBOT) {
//check if there are other bots in the users channel - otherwise free them
struct ChanUser *chanuser, *next;