From 7eb4e8a89a9eed4ded46de4d0d2093c81279da8c Mon Sep 17 00:00:00 2001 From: pk910 Date: Wed, 14 Dec 2011 21:54:06 +0100 Subject: [PATCH] fixed last commits --- src/IRCParser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IRCParser.c b/src/IRCParser.c index e96063e..d1189bb 100644 --- a/src/IRCParser.c +++ b/src/IRCParser.c @@ -171,7 +171,7 @@ static IRC_CMD(raw_join) { struct UserNode *user = getUserByMask(from); struct ChanNode *chan = getChanByName(argv[0]); if(!chan && !(user->flags & USERFLAG_ISBOT)) return 0; - if(chan && ((!isBot(user) && chan->chanbot != client->user) || (isBot(user) && client->user != user))) return 1; //we ignore it - but it's not a parse error + if(chan && (((!user || !isBot(user)) && chan->chanbot != client->user) || ((user && isBot(user)) && client->user != user))) return 1; //we ignore it - but it's not a parse error //let Bots always add themselves! (maybe they join invisible) if(user == NULL) { user = addUserMask(from); -- 2.20.1