compile fixes and help fix for channel commands

This commit is contained in:
Mark 2004-08-14 21:24:32 +00:00
parent a2aee34dfe
commit 0bb1d70879
3 changed files with 4 additions and 4 deletions

View file

@ -79,7 +79,7 @@
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifdef HAVE_CTYPE_H
#if 1 /*def HAVE_CTYPE_H*/
#include <ctype.h>
#endif
#ifdef HAVE_SYS_STAT_H

View file

@ -852,4 +852,4 @@ void statserv_rta_fini (void)
list_destroy (fakenetwork);
}
#endif
#endif

View file

@ -27,10 +27,10 @@
* - Make command alerts optional
*/
#include "neostats.h"
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#include "neostats.h"
#include "ns_help.h"
#include "modules.h"
#include "services.h"
@ -665,7 +665,7 @@ bot_cmd_help (CmdParams * cmdparams)
return NS_ERR_NO_PERMISSION;
}
if(!cmd_ptr->helptext) {
irc_privmsg (cmdparams->bot, cmdparams->source, __("Missing help text for command", cmdparams->source));
irc_prefmsg (cmdparams->bot, cmdparams->source, __("Missing help text for command", cmdparams->source));
} else {
irc_prefmsg_list (cmdparams->bot, cmdparams->source, cmd_ptr->helptext);
}