]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_gline.cpp
Fix bug spotted by KingTarquin, if an empty string is given to /stats with "STATS...
[user/henk/code/inspircd.git] / src / commands / cmd_gline.cpp
index a100564105f7107ed31f115d56e5cd49fc1ab109..351e230950def69312bd2df628d73e2ff7603900 100644 (file)
@@ -60,13 +60,13 @@ CmdResult CommandGline::Handle (const std::vector<std::string>& parameters, User
                {
                        if (!duration)
                        {
-                               ServerInstance->SNO->WriteToSnoMask('x',"%s added permanent G-line for %s.",user->nick.c_str(),target.c_str());
+                               ServerInstance->SNO->WriteToSnoMask('x',"%s added permanent G-line for %s: %s",user->nick.c_str(),target.c_str(), parameters[2].c_str());
                        }
                        else
                        {
                                time_t c_requires_crap = duration + ServerInstance->Time();
-                               ServerInstance->SNO->WriteToSnoMask('x',"%s added timed G-line for %s, expires on %s",user->nick.c_str(),target.c_str(),
-                                               ServerInstance->TimeString(c_requires_crap).c_str());
+                               ServerInstance->SNO->WriteToSnoMask('x',"%s added timed G-line for %s, expires on %s: %s",user->nick.c_str(),target.c_str(),
+                                               ServerInstance->TimeString(c_requires_crap).c_str(), parameters[2].c_str());
                        }
 
                        ServerInstance->XLines->ApplyLines();