summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRutger <djslash+github@djslash.org>2012-04-01 21:32:29 +0200
committerRutger <djslash+github@djslash.org>2012-04-01 21:32:29 +0200
commitd7660914c10eb0eb30e5b2b8d22833b0d6b9ec65 (patch)
tree9d5d63443b3736f30120013291d2b98386fd6dea
parente73e4be15485f545ff485d3d372b513dd28bf759 (diff)
Show class in connectmsg
Made the connect announcement show the class a client is in, making it easy to spot if a client is in the right class.
-rw-r--r--src/users.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 7f8e3df8a..dda214a78 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -827,8 +827,8 @@ void LocalUser::FullConnect()
FOREACH_MOD(I_OnPostConnect,OnPostConnect(this));
- ServerInstance->SNO->WriteToSnoMask('c',"Client connecting on port %d: %s!%s@%s [%s] [%s]",
- this->GetServerPort(), this->nick.c_str(), this->ident.c_str(), this->host.c_str(), this->GetIPString(), this->fullname.c_str());
+ ServerInstance->SNO->WriteToSnoMask('c',"Client connecting on port %d (class %s): %s!%s@%s [%s] [%s]",
+ this->GetServerPort(), this->MyClass->name.c_str(), this->nick.c_str(), this->ident.c_str(), this->host.c_str(), this->GetIPString(), this->fullname.c_str());
ServerInstance->Logs->Log("BANCACHE", DEBUG, "BanCache: Adding NEGATIVE hit for %s", this->GetIPString());
ServerInstance->BanCache->AddHit(this->GetIPString(), "", "");
// reset the flood penalty (which could have been raised due to things like auto +x)