Fix +J not checking for local clients properly.

This commit is contained in:
B.Greenham 2010-03-05 20:23:52 -05:00
parent 7ab1bb39ab
commit a58b84b4b2
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ m_kick(struct Client *client_p, struct Client *source_p, int parc, const char *p
remove_user_from_channel(msptr); remove_user_from_channel(msptr);
/* we don't need to track NOREJOIN stuff unless it's our client being kicked */ /* we don't need to track NOREJOIN stuff unless it's our client being kicked */
if(MyClient(source_p) && chptr->mode.mode & MODE_NOREJOIN) if(MyClient(who) && chptr->mode.mode & MODE_NOREJOIN)
channel_metadata_time_add(chptr, "KICKNOREJOIN", rb_current_time(), who->id); channel_metadata_time_add(chptr, "KICKNOREJOIN", rb_current_time(), who->id);
} }
else if (MyClient(source_p)) else if (MyClient(source_p))