diff options
author | Adam <Adam@anope.org> | 2010-09-27 17:02:36 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-09-27 17:02:36 -0400 |
commit | 6ca09be66341fd9f568fb0ac754df4f4c561bc1f (patch) | |
tree | da58c10795eaa5ed9298c84d8a49f089018164ff /modules/protocol/bahamut.cpp | |
parent | 7db5e19f7499cce5b86d63f8af5ae5ecf7245bf0 (diff) |
Cleaned up some unused code, moved handling of user modes around so we dont get log messages about user modes when users connect, and fixed tracking some umodes on Unreal
Diffstat (limited to 'modules/protocol/bahamut.cpp')
-rw-r--r-- | modules/protocol/bahamut.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/modules/protocol/bahamut.cpp b/modules/protocol/bahamut.cpp index c1a223672..efe5e4d16 100644 --- a/modules/protocol/bahamut.cpp +++ b/modules/protocol/bahamut.cpp @@ -33,7 +33,6 @@ IRCDVar myIrcd[] = { 1, /* time stamp on mode */ 0, /* O:LINE */ 1, /* UMODE */ - 0, /* VHOST ON NICK */ 1, /* No Knock requires +i */ 0, /* Can remove User Channel Modes with SVSMODE */ 0, /* Sglines are not enforced until user reconnects */ @@ -446,23 +445,21 @@ int anope_event_nick(const Anope::string &source, int ac, const char **av) if (ac != 2) { - user = do_nick(source, av[0], av[4], av[5], av[6], av[9], Anope::string(av[2]).is_pos_number_only() ? convertTo<time_t>(av[2]) : 0, av[8], "", ""); + user = do_nick(source, av[0], av[4], av[5], av[6], av[9], Anope::string(av[2]).is_pos_number_only() ? convertTo<time_t>(av[2]) : 0, av[8], "", "", av[3]); if (user) { - UserSetInternalModes(user, 1, &av[3]); - NickAlias *na; if (user->timestamp == convertTo<time_t>(av[7]) && (na = findnick(user->nick))) { user->Login(na->nc); - user->SetMode(NickServ, CMODE_REGISTERED); + user->SetMode(NickServ, UMODE_REGISTERED); } else validate_user(user); } } else - do_nick(source, av[0], "", "", "", "", Anope::string(av[1]).is_pos_number_only() ? convertTo<time_t>(av[1]) : 0, "", "", ""); + do_nick(source, av[0], "", "", "", "", Anope::string(av[1]).is_pos_number_only() ? convertTo<time_t>(av[1]) : 0, "", "", "", ""); return MOD_CONT; } |