diff options
| author | 2005-12-29 23:02:01 +0000 | |
|---|---|---|
| committer | 2005-12-29 23:02:01 +0000 | |
| commit | 5e62a8399f1a7a1e9b0bd02a8df6b1a506d0b203 (patch) | |
| tree | 1810cb6455f0a51db2b4d1d14c14c6f86c2e1f4d /src/users.cpp | |
| parent | Cached ISUPPORT (diff) | |
Attempt to cut out unneccessary printf() va_args voodoo (ugleh)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2703 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/users.cpp b/src/users.cpp index a36ad96f7..f4075dec4 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -642,7 +642,7 @@ void FullConnectUser(userrec* user, CullList* Goners) user->idle_lastmsg = TIME; log(DEBUG,"ConnectUser: %s",user->nick); - if ((strcmp(Passwd(user),"")) && (!user->haspassed)) + if ((*(Passwd(user))) && (!user->haspassed)) { Goners->AddItem(user,"Invalid password"); return; @@ -710,17 +710,6 @@ void FullConnectUser(userrec* user, CullList* Goners) WriteOpers("*** Client connecting on port %lu: %s!%s@%s [%s]",(unsigned long)user->port,user->nick,user->ident,user->host,user->ip); } - -/* shows the message of the day, and any other on-logon stuff */ -//void ConnectUser(userrec *user) -//{ - // dns is already done, things are fast. no need to wait for dns to complete just pass them straight on - //if ((user->dns_done) && (user->registered >= 3) && (AllModulesReportReady(user))) - //{ - // FullConnectUser(user, Goners); - //} -//} - /* re-allocates a nick in the user_hash after they change nicknames, * returns a pointer to the new user as it may have moved */ |
