Skip to content

Commit

Permalink
- channel_mode.c: moved 'if (!mode_count)' test from send_mode_change…
Browse files Browse the repository at this point in the history
…s_client() to

  set_channel_mode()


git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@5749 82007160-df01-0410-b94d-b575c5fd34c7
  • Loading branch information
michael committed Mar 31, 2015
1 parent 56d37e9 commit f7a044a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/channel_mode.c
Expand Up @@ -1427,10 +1427,6 @@ send_mode_changes_client(struct Client *source_p, struct Channel *chptr)
const char *arg = NULL;
char *parptr = NULL;

/* Bail out if we have nothing to do... */
if (!mode_count)
return;

if (IsServer(source_p))
mbl = snprintf(modebuf, sizeof(modebuf), ":%s MODE %s ", (IsHidden(source_p) ||
ConfigServerHide.hide_servers) ?
Expand Down Expand Up @@ -1553,6 +1549,10 @@ set_channel_mode(struct Client *source_p, struct Channel *chptr,
}
}

/* Bail out if we have nothing to do... */
if (!mode_count)
return;

send_mode_changes_client(source_p, chptr);
send_mode_changes_server(source_p, chptr);
}

0 comments on commit f7a044a

Please sign in to comment.