From 494d7f7489a78df919c1e9effcb0a014e8dc2286 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 28 Oct 2006 19:42:29 +0000 Subject: * Fix removal of user modes when unloading the mode letter (this actually works now) * Fix m_stripcolor channel mode +S (was unsettable as it had some user mode checks in it) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5577 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_user.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/cmd_user.cpp') diff --git a/src/cmd_user.cpp b/src/cmd_user.cpp index d6565ce11..208e04380 100644 --- a/src/cmd_user.cpp +++ b/src/cmd_user.cpp @@ -55,7 +55,8 @@ CmdResult cmd_user::Handle (const char** parameters, int pcnt, userrec *user) if (user->registered == REG_NICKUSER) { /* user is registered now, bit 0 = USER command, bit 1 = sent a NICK command */ - ServerInstance->next_call = ServerInstance->Time() + ServerInstance->Config->dns_timeout; + if (ServerInstance->next_call > ServerInstance->Time() + ServerInstance->Config->dns_timeout) + ServerInstance->next_call = ServerInstance->Time() + ServerInstance->Config->dns_timeout; FOREACH_MOD(I_OnUserRegister,OnUserRegister(user)); } -- cgit v1.3.1-10-gc9f91