diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-06-03 19:01:28 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-06-03 19:01:28 +0000 |
commit | 9abdb4e2e96b7b7699ce3ec66633bcc8f14e025d (patch) | |
tree | bb1f508aad9455d89f332c96ed606a770debee77 /src/protocol/unreal32.c | |
parent | f43f6c386431dfc2e7668916b4582a98c18ca6c3 (diff) |
Added inspircd2.0 protocol module, moved usermode +r unsetting on nick change to the protocol modules to fix inspircd1.2s weird usermode +r behavior
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2997 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/unreal32.c')
-rw-r--r-- | src/protocol/unreal32.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/protocol/unreal32.c b/src/protocol/unreal32.c index 5da7c8b86..131989509 100644 --- a/src/protocol/unreal32.c +++ b/src/protocol/unreal32.c @@ -43,7 +43,6 @@ IRCDVar myIrcd[] = { 1, /* UMODE */ 1, /* VHOST ON NICK */ 1, /* Change RealName */ - 1, /* On nick change check if they could be identified */ 1, /* No Knock requires +i */ 1, /* We support Unreal TOKENS */ 1, /* TIME STAMPS are BASE64 */ @@ -1384,8 +1383,14 @@ class ProtoUnreal : public Module pmodule_ircd_proto(&ircd_proto); moduleAddIRCDMsgs(); - } + ModuleManager::Attach(I_OnUserNickChange, this); + } + + void OnUserNickChange(User *u, const std::string &) + { + u->RemoveModeInternal(ModeManager::FindUserModeByName(UMODE_REGISTERED)); + } }; MODULE_INIT(ProtoUnreal) |