summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-09-09 16:11:27 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-09-09 16:11:27 +0000
commit27525b8e65c0908d3400f41cc5416d42c0362664 (patch)
tree5217b87e8616fb74a19085b59293de89f577fb40 /src/users.cpp
parentae24657214e69d6f77407c5cfaa0095da7b6d7c1 (diff)
Dont generate host change, ident change or fullname change events if the host hasnt changed (case sensitive comparisons)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5187 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 6313c7340..53d46ceb8 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -1717,6 +1717,9 @@ void userrec::ModChannelCount(int n)
bool userrec::ChangeName(const char* gecos)
{
+ if (!strcmp(gecos, this->fullname))
+ return true;
+
if (IS_LOCAL(this))
{
int MOD_RESULT = 0;
@@ -1731,6 +1734,9 @@ bool userrec::ChangeName(const char* gecos)
bool userrec::ChangeDisplayedHost(const char* host)
{
+ if (!strcmp(host, this->dhost))
+ return true;
+
if (IS_LOCAL(this))
{
int MOD_RESULT = 0;
@@ -1766,6 +1772,9 @@ bool userrec::ChangeDisplayedHost(const char* host)
bool userrec::ChangeIdent(const char* newident)
{
+ if (!strcmp(newident, this->ident))
+ return true;
+
if (this->ServerInstance->Config->CycleHosts)
this->WriteCommonExcept("%s","QUIT :Changing ident");