diff options
Diffstat (limited to 'src/message.cpp')
-rw-r--r-- | src/message.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/message.cpp b/src/message.cpp index f55df0ee3..8c03e85f2 100644 --- a/src/message.cpp +++ b/src/message.cpp @@ -212,7 +212,7 @@ bool hasumode(userrec* user, char mode) void ChangeName(userrec* user, const char* gecos) { - if (!strcasecmp(user->server,ServerName)) + if (user->fd > -1) { int MOD_RESULT = 0; FOREACH_RESULT(OnChangeLocalUserGECOS(user,gecos)); @@ -225,7 +225,7 @@ void ChangeName(userrec* user, const char* gecos) void ChangeDisplayedHost(userrec* user, const char* host) { - if (!strcasecmp(user->server,ServerName)) + if (user->fd > -1) { int MOD_RESULT = 0; FOREACH_RESULT(OnChangeLocalUserHost(user,host)); |