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;
// 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);