From 27525b8e65c0908d3400f41cc5416d42c0362664 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 9 Sep 2006 16:11:27 +0000 Subject: 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 --- src/users.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') 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"); -- cgit v1.2.3