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/inspircd20.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/inspircd20.cpp')
-rw-r--r-- | modules/protocol/inspircd20.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/protocol/inspircd20.cpp b/modules/protocol/inspircd20.cpp index 4ebd9711c..5740c43b8 100644 --- a/modules/protocol/inspircd20.cpp +++ b/modules/protocol/inspircd20.cpp @@ -34,7 +34,6 @@ IRCDVar myIrcd[] = { 0, /* time stamp on mode */ 0, /* O:LINE */ 1, /* UMODE */ - 1, /* VHOST ON NICK */ 1, /* No Knock requires +i */ 0, /* Can remove User Channel Modes with SVSMODE */ 0, /* Sglines are not enforced until user reconnects */ @@ -692,7 +691,7 @@ int anope_event_sethost(const Anope::string &source, int ac, const char **av) int anope_event_nick(const Anope::string &source, int ac, const char **av) { - do_nick(source, av[0], "", "", "", "", 0, "", "", ""); + do_nick(source, av[0], "", "", "", "", 0, "", "", "", ""); return MOD_CONT; } @@ -735,10 +734,12 @@ int anope_event_uid(const Anope::string &source, int ac, const char **av) user->SetMode(NickServ, UMODE_REGISTERED); } - user = do_nick("", av[2], av[5], av[3], s->GetName(), av[ac - 1], ts, av[6], av[4], av[0]); + Anope::string modes = av[8]; + for (int i = 9; i < ac - 1; ++i) + modes += Anope::string(" ") + av[i]; + user = do_nick("", av[2], av[5], av[3], s->GetName(), av[ac - 1], ts, av[6], av[4], av[0], modes); if (user) { - UserSetInternalModes(user, 1, &av[8]); if (!user->server->IsSynced()) prev_u_intro = user; else |