]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_check.cpp
[Taros] Add m_sakick.so
[user/henk/code/inspircd.git] / src / modules / m_check.cpp
index 1f142014ef71fe398905467edb3a7dbc8e14b80a..7caa6225dd909d565c9262d367e3fc6c45e2250b 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
@@ -60,6 +60,7 @@ class CommandCheck : public Command
                        user->WriteServ(checkstr + " modes +" + targuser->FormatModes());
                        user->WriteServ(checkstr + " snomasks +" + targuser->FormatNoticeMasks());
                        user->WriteServ(checkstr + " server " + targuser->server);
+                       user->WriteServ(checkstr + " uid " + targuser->uuid);
 
                        if (IS_AWAY(targuser))
                        {
@@ -87,12 +88,12 @@ class CommandCheck : public Command
                else if (targchan)
                {
                        /* /check on a channel */
-                       time_t creation_time = targchan->created;
+                       time_t creation_time = targchan->age;
                        time_t topic_time = targchan->topicset;
 
                        mytime = gmtime(&creation_time);
                        strftime(timebuf, 59, "%Y/%m/%d - %H:%M:%S", mytime);
-                       user->WriteServ(checkstr + " created " + timebuf);
+                       user->WriteServ(checkstr + " timestamp " + timebuf);
 
                        if (targchan->topic[0] != 0)
                        {
@@ -130,7 +131,7 @@ class CommandCheck : public Command
                        /* hostname or other */
                        for (user_hash::const_iterator a = ServerInstance->Users->clientlist->begin(); a != ServerInstance->Users->clientlist->end(); a++)
                        {
-                               if (InspIRCd::Match(a->second->host, parameters[0]) || InspIRCd::Match(a->second->dhost, parameters[0]))
+                               if (InspIRCd::Match(a->second->host, parameters[0], ascii_case_insensitive_map) || InspIRCd::Match(a->second->dhost, parameters[0], ascii_case_insensitive_map))
                                {
                                        /* host or vhost matches mask */
                                        user->WriteServ(checkstr + " match " + ConvToStr(++x) + " " + a->second->GetFullRealHost());