findforwards: Don't compare array to NULL as this is always true.

This commit is contained in:
Jilles Tjoelker 2014-03-02 21:47:36 +01:00
parent 40173bcbb3
commit b222b6a05a

View file

@ -93,7 +93,7 @@ m_findforwards(struct Client *client_p, struct Client *source_p, int parc, const
RB_DLINK_FOREACH(ptr, global_channel_list.head)
{
chptr = ptr->data;
if(chptr->mode.forward && !irccmp(chptr->mode.forward, parv[1]))
if(!irccmp(chptr->mode.forward, parv[1]))
{
if(p + strlen(chptr->chname) >= end - 13)
{