summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-06-19 10:32:37 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-06-19 10:32:37 +0000
commit508e4b41d1602994dff02cd0779311a90977ecf8 (patch)
tree02435aa1bb0cc967c30ebbf036bbd68ce937f75c
parentd8b26f3d2761a0b4997713d12795e842a2a1c2ea (diff)
- s_user.c:user_set_hostmask(): don't send QUIT message to channels if
cycle_on_host_change is turned off git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2290 82007160-df01-0410-b94d-b575c5fd34c7
-rw-r--r--src/s_user.c5
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));