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/inspircd11.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/inspircd11.c')
-rw-r--r-- | src/protocol/inspircd11.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/protocol/inspircd11.c b/src/protocol/inspircd11.c index eaa94ec87..e9e28189e 100644 --- a/src/protocol/inspircd11.c +++ b/src/protocol/inspircd11.c @@ -60,7 +60,6 @@ IRCDVar myIrcd[] = { 1, /* UMODE */ 1, /* VHOST ON NICK */ 0, /* Change RealName */ - 0, 1, /* No Knock requires +i */ 0, /* We support inspircd TOKENS */ 0, /* TIME STAMPS are BASE64 */ @@ -325,6 +324,8 @@ class InspIRCdProto : public IRCDProto u->Account()->Shrink("authenticationtoken"); u->Account()->Extend("authenticationtoken", new ExtensibleItemPointerArray<char>(sstrdup(svidbuf))); + + u->SetMode(findbot(Config.s_NickServ), UMODE_REGISTERED); } } ircd_proto; @@ -1182,6 +1183,13 @@ class ProtoInspIRCd : 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)); } }; |