]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/hashcomp.cpp
Fix w00ts compile error :p (if you do an if without braces, vars declared within...
[user/henk/code/inspircd.git] / src / hashcomp.cpp
index e076d1d7120b7d95708c0a690d4837eca63bdec2..55b3f9b5848ff47e4321e5c90b1e14d2519c4ef8 100644 (file)
@@ -2,20 +2,15 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
- *                    E-mail:
- *             <brain@chatspike.net>
- *             <Craig@chatspike.net>
+ *  InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ * See: http://www.inspircd.org/wiki/index.php/Credits
  *
- * Written by Craig Edwards, Craig McLure, and others.
  * This program is free but copyrighted software; see
- *         the file COPYING for details.
+ *            the file COPYING for details.
  *
  * ---------------------------------------------------
  */
 
-using namespace std;
-
 #include "inspircd.h"
 #include "hashcomp.h"
 #include <ext/hash_map>
@@ -50,7 +45,6 @@ using namespace std;
  *
  ******************************************************/
 
-using namespace std;
 using namespace irc::sockets;
 
 /* convert a string to lowercase. Note following special circumstances
@@ -290,6 +284,11 @@ const std::string irc::sepstream::GetToken()
        return "";
 }
 
+bool irc::sepstream::StreamEnd()
+{
+       return ((n + 1) == tokens.end());
+}
+
 irc::sepstream::~sepstream()
 {
 }
@@ -316,7 +315,7 @@ std::string irc::hex(const unsigned char *raw, size_t rawsz)
        return buf;
 }
 
-const char* irc::Spacify(char* n)
+const char* irc::Spacify(const char* n)
 {
        static char x[MAXBUF];
        strlcpy(x,n,MAXBUF);