* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "../module.h"
+#include "../botid.h"
#include "bot_NeonSpam.h"
#include "../../modcmd.h"
#include "../../bots.h"
#include "cmd_neonspam.h"
-#define BOTID 2
+#define BOTID NEONSPAM_BOTID
#define BOTALIAS "NeonSpam"
static const struct default_language_entry msgtab[] = {
MYSQL_RES *res;
MYSQL_ROW row, defaults = NULL;
loadChannelSettings(chan);
+ if(!(chan->flags & CHANFLAG_CHAN_REGISTERED))
+ return 0;
printf_mysql_query("SELECT `channel_scanner`, `channel_spam_limit`, `channel_spam_except`, `channel_flood_limit`, `channel_flood_time`, `channel_flood_except`, `channel_join_limit`, `channel_join_time`, `channel_join_except`, `channel_caps_percent`, `channel_caps_except`, `channel_digit_percent`, `channel_digit_except` FROM `channels` WHERE `channel_id` = '%d'", chan->channel_id);
res = mysql_use();
row = mysql_fetch_row(res);