]> jfr.im git - irc/UndernetIRC/gnuworld.git/commitdiff
Crash when a user without a chanfix account requests a USERSCORES fixed.
authorSpike <redacted>
Wed, 27 Oct 2010 14:23:20 +0000 (16:23 +0200)
committerSpike <redacted>
Wed, 27 Oct 2010 14:23:20 +0000 (16:23 +0200)
mod.openchanfix/USERSCORESCommand.cc

index e33b23510cddf59608cfafc6c3a1df403866fa63..72857cbfc9cd1cacc69a767781e46b4647ac16f9 100644 (file)
@@ -82,7 +82,7 @@ if (!foundOne) {
 }
 
 bot->logAdminMessage("%s (%s) USERSCORES %s",
-                    theUser->getUserName().c_str(),
+                    theUser ? theUser->getUserName().c_str() : "!NOT-LOGGED-IN!",
                     theClient->getRealNickUserHost().c_str(),
                     st[1].c_str());