diff options
-rw-r--r-- | src/s_user.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/s_user.c b/src/s_user.c index e40f2d1..ad7f716 100644 --- a/src/s_user.c +++ b/src/s_user.c @@ -1069,8 +1069,9 @@ user_set_hostmask(struct Client *target_p, const char *hostname, const int what) default: return; } - sendto_common_channels_local(target_p, 0, 0, ":%s!%s@%s QUIT :Changing hostname", - target_p->name, target_p->username, target_p->host); + if (ConfigFileEntry.cycle_on_host_change) + sendto_common_channels_local(target_p, 0, 0, ":%s!%s@%s QUIT :Changing hostname", + target_p->name, target_p->username, target_p->host); if (IsUserHostIp(target_p)) delete_user_host(target_p->username, target_p->host, !MyConnect(target_p)); |