diff options
| author | Adam <Adam@anope.org> | 2010-12-13 16:36:36 -0500 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2010-12-13 16:36:36 -0500 |
| commit | 49d3c97b677f319460146803004066dfd3d19089 (patch) | |
| tree | e8408660141f958bdc9cfac8fbad4a67553e0a40 /include/services.h | |
| parent | 97467cb2c85832c10da11364e0517ed3c4453ddb (diff) | |
Bug #1079 - Don't use users real host and IPs when matching against
bans and excepts, except when a user is unbanning themselves, in an
attempt to prevent people from gaining other users IPs.
This removes support for Unreal and Bahamuts SVSMode -b because
it will unban users by real host and IP.
Diffstat (limited to 'include/services.h')
| -rw-r--r-- | include/services.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/services.h b/include/services.h index 75aa4905c..645afc911 100644 --- a/include/services.h +++ b/include/services.h @@ -441,7 +441,6 @@ struct IRCDVar int join2msg; /* Join 2 Message */ int chansqline; /* Supports Channel Sqlines */ int quitonkill; /* IRCD sends QUIT when kill */ - int svsmode_unban; /* svsmode can be used to unban */ int vident; /* Supports vidents */ int svshold; /* Supports svshold */ int tsonmode; /* Timestamp on mode changes */ @@ -786,9 +785,10 @@ class Entry : public Flags<EntryType> /** Check if this entry matches a user * @param u The user + * @param full True to match against a users real host and IP * @return true on match */ - bool Matches(User *u) const; + bool Matches(User *u, bool full = false) const; }; /*************************************************************************/ @@ -968,7 +968,6 @@ class CoreExport IRCDProto virtual void SendSZLineDel(const XLine *) { } virtual void SendSZLine(const XLine *) { } virtual void SendSGLine(const XLine *) { } - virtual void SendBanDel(const Channel *, const Anope::string &) { } virtual void SendSVSModeChan(const Channel *, const Anope::string &, const Anope::string &) { } virtual void SendUnregisteredNick(const User *) { } virtual void SendCTCP(const BotInfo *bi, const Anope::string &dest, const char *fmt, ...); |
