]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/encap.cpp
Change /CHECK <#channel> to correctly report timestamp since it might have been TS...
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / encap.cpp
index 02233e91678cc51db1bcadec52ca1d49d7742b25..992a60a9e951b705c1d7681a1843f5150f7a4029 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
  * See: http://www.inspircd.org/wiki/index.php/Credits
  *
  * This program is free but copyrighted software; see
@@ -27,10 +27,10 @@ bool TreeSocket::Encap(const std::string &prefix, std::deque<std::string> &param
 {
        if (params.size() > 1)
        {
-               if (InspIRCd::Match(Instance->Config->GetSID(), params[0]))
+               if (InspIRCd::Match(ServerInstance->Config->GetSID(), params[0]))
                {
                        Event event((char*) &params, (Module*)this->Utils->Creator, "encap_received");
-                       event.Send(Instance);
+                       event.Send(ServerInstance);
                }
 
                if (params[0].find('*') != std::string::npos)