]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/xline.cpp
Threadengine stuff
[user/henk/code/inspircd.git] / src / xline.cpp
index 268804f9dce804981a14f4f9e700e6746ffef23b..547a54fea6ed564ced89b8f442333627338cae2e 100644 (file)
@@ -139,6 +139,7 @@ IdentHostPair XLineManager::IdentSplit(const std::string &ident_and_host)
        }
        else
        {
+               n.first = "";
                n.second = ident_and_host;
        }
 
@@ -390,16 +391,21 @@ void XLine::Apply(User* u)
 {
 }
 
+bool XLine::IsBurstable()
+{
+       return true;
+}
+
 void XLine::DefaultApply(User* u, const std::string &line, bool bancache)
 {
-       char reason[MAXBUF];
-       snprintf(reason, MAXBUF, "%s-Lined: %s", line.c_str(), this->reason);
+       char sreason[MAXBUF];
+       snprintf(sreason, MAXBUF, "%s-Lined: %s", line.c_str(), this->reason);
        if (*ServerInstance->Config->MoronBanner)
                u->WriteServ("NOTICE %s :*** %s", u->nick, ServerInstance->Config->MoronBanner);
        if (ServerInstance->Config->HideBans)
-               User::QuitUser(ServerInstance, u, line + "-Lined", reason);
+               User::QuitUser(ServerInstance, u, line + "-Lined", sreason);
        else
-               User::QuitUser(ServerInstance, u, reason);
+               User::QuitUser(ServerInstance, u, sreason);
 
 
        if (bancache)
@@ -594,6 +600,11 @@ const char* QLine::Displayable()
        return nick;
 }
 
+bool KLine::IsBurstable()
+{
+       return false;
+}
+
 bool XLineManager::RegisterFactory(XLineFactory* xlf)
 {
        XLineFactMap::iterator n = line_factory.find(xlf->GetType());