diff options
author | Adam <Adam@anope.org> | 2010-08-19 16:27:38 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-08-19 16:27:38 -0400 |
commit | 931b0777fbd961a4ca961ddfa763af92dcce946c (patch) | |
tree | b49fd2d5ee2d2299e933a3561be6e81ffcb3664e /modules/protocol/inspircd12.cpp | |
parent | b180d5f975b3fd9a096a712adf9589c360831f72 (diff) |
Changed the svid system back to using user timestamps for IRCds limited to just usermode +d. This allows us to keep people logged in once again when Anope is restarted.
Diffstat (limited to 'modules/protocol/inspircd12.cpp')
-rw-r--r-- | modules/protocol/inspircd12.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/modules/protocol/inspircd12.cpp b/modules/protocol/inspircd12.cpp index 4a4ef9a00..a78ead0a8 100644 --- a/modules/protocol/inspircd12.cpp +++ b/modules/protocol/inspircd12.cpp @@ -855,15 +855,16 @@ int anope_event_whois(const Anope::string &source, int ac, const char **av) int anope_event_metadata(const Anope::string &source, int ac, const char **av) { - User *u; - if (ac < 3) return MOD_CONT; else if (!strcmp(av[1], "accountname")) { - if ((u = finduser(av[0]))) - /* Identify the user for this account - Adam */ - u->AutoID(av[2]); + User *u = finduser(av[0]); + NickCore *nc = findcore(av[2]); + if (u && nc) + { + u->Login(nc); + } } return MOD_CONT; |