mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 19:19:02 -04:00
Comment on potentially confusing code
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10616 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
697098bb47
commit
d6bec26bc7
@ -30,6 +30,14 @@ class ServProtectMode : public ModeHandler
|
||||
|
||||
ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding, bool)
|
||||
{
|
||||
/* Because this returns MODEACTION_DENY all the time, there is only ONE
|
||||
* way to add this mode and that is at client introduction in the UID command,
|
||||
* as this calls OnModeChange for each mode but disregards the return values.
|
||||
* The mode cannot be manually added or removed, not even by a server or by a remote
|
||||
* user, which prevents its (ab)use as a kiddie 'god mode' on such networks.
|
||||
* I'm sure if someone really wants to do that they can make a copy of this module
|
||||
* that does the job. It won't be me though!
|
||||
*/
|
||||
return MODEACTION_DENY;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user