]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_swhois.cpp
Remove m_silence: this is 1.2 only. m_silence_ext is a fully backwards compatible...
[user/henk/code/inspircd.git] / src / modules / m_swhois.cpp
index db5d60cd722046aa0fc84b6a3f79e6a7e2387f7d..350ebd648553d97955396e6635938d8bf33d12ff 100644 (file)
@@ -206,14 +206,14 @@ class ModuleSWhois : public Module
                        std::string* text;
                        if (dest->GetExt("swhois", text))
                        {
-                               user->Shrink("swhois");
+                               dest->Shrink("swhois");
                                delete text;
-
-                               if (extdata.empty())
-                                       return; // XXX does the command parser even allow sending blank mdata? it needs to here! -- w00t
                        }
 
-                       text2 = new std::string(extdata);
+                       if (extdata.empty())
+                               return; // XXX does the command parser even allow sending blank mdata? it needs to here! -- w00t
+
+                       text = new std::string(extdata);
                        dest->Extend("swhois", text);
                }
        }