diff options
author | special <special@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-29 08:13:49 +0000 |
---|---|---|
committer | special <special@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-29 08:13:49 +0000 |
commit | fee65af28e1db5cc431bda2dc643952b88461a74 (patch) | |
tree | 651349e4505bdac3acb39284252c231c30b7607e /src/users.cpp | |
parent | cbef292a6c4137bf99544e380b3a650237b2d9a7 (diff) |
Replace the IP (in addition to hostname) for CGIIRC clients; fixes glines and zlines on IPs affecting cgiirc users. Thanks to Saz|Laptop
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10607 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/users.cpp b/src/users.cpp index 9f9d34fa4..33b8cdc7c 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -842,10 +842,10 @@ void User::CheckClass() this->nping = ServerInstance->Time() + a->GetPingTime() + ServerInstance->Config->dns_timeout; } -bool User::CheckLines() +bool User::CheckLines(bool doZline) { - const char* check[] = { "G" , "K", NULL }; - + const char* check[] = { "G" , "K", (doZline) ? "Z" : NULL, NULL }; + if (!this->exempt) { for (int n = 0; check[n]; ++n) |