diff options
Diffstat (limited to 'src/protocol/bahamut.c')
-rw-r--r-- | src/protocol/bahamut.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/protocol/bahamut.c b/src/protocol/bahamut.c index 717654220..e0aa334f1 100644 --- a/src/protocol/bahamut.c +++ b/src/protocol/bahamut.c @@ -43,7 +43,6 @@ IRCDVar myIrcd[] = { 1, /* UMODE */ 0, /* VHOST ON NICK */ 0, /* Change RealName */ - 1, 1, /* No Knock requires +i */ 0, /* We support TOKENS */ 0, /* TIME STAMPS are BASE64 */ @@ -828,8 +827,14 @@ class ProtoBahamut : public Module moduleAddModes(); pmodule_ircd_proto(&ircd_proto); + + ModuleManager::Attach(I_OnUserNickChange, this); } + void OnUserNickChange(User *u, const std::string &) + { + u->RemoveModeInternal(ModeManager::FindUserModeByName(UMODE_REGISTERED)); + } }; MODULE_INIT(ProtoBahamut) |