[project @ 2002-08-06 20:48:44 by unknown_lamer]
[clinton/bobotpp.git] / source / Parser.C
index 7cbb766..9be4f08 100644 (file)
@@ -91,12 +91,7 @@ Parser::parseLine (ServerConnection * cnx, String line)
 
   String command = st.nextToken ();
   String rest = st.rest ();
-  /*  for (int i = 0; functions[i].name != 0; i++)
-     if (command == functions[i].name) {
-     functions[i].function(cnx, from, rest);
-     break;
-     }
-   */
+
   if (fptr temp_func = functions[command])
     temp_func (cnx, from, rest);
   delete from;
@@ -855,7 +850,7 @@ Parser::parseCTCP (ServerConnection * cnx,
          // FIXME: debug DCC
          st2.nextToken ();
          unsigned long address =
-           ntohl (strtoul ((const char *) st2.nextToken (), 0, 0));
+           strtoul ((const char *) st2.nextToken (), 0, 0);
          int port = atoi ((const char *) st2.nextToken ());
          if (port >= 1024 && Utils::getLevel (cnx->bot, from->getAddress ()))
            cnx->bot->addDCC (from, address, port);