projects
/
NeonServV5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a30633b
)
use default trigger if the channel is not registered
author
pk910
<philipp@zoelle1.de>
Sun, 23 Oct 2011 19:41:40 +0000
(21:41 +0200)
committer
pk910
<philipp@zoelle1.de>
Sun, 23 Oct 2011 19:41:40 +0000
(21:41 +0200)
src/bot_NeonServ.c
patch
|
blob
|
history
diff --git
a/src/bot_NeonServ.c
b/src/bot_NeonServ.c
index 345b635c709f05725de184c6bd11d1d7b9b98e6e..34414f02a5167edfbc167972b9e2f6d351f5fdb7 100644
(file)
--- a/
src/bot_NeonServ.c
+++ b/
src/bot_NeonServ.c
@@
-367,6
+367,10
@@
static void neonserv_trigger_callback(struct ChanNode *chan, char *trigger) {
MYSQL_RES *res;
MYSQL_ROW row;
loadChannelSettings(chan);
+ if(!(chan->flags & CHANFLAG_CHAN_REGISTERED)) {
+ strcpy(trigger, "+");
+ return;
+ }
printf_mysql_query("SELECT `trigger` FROM `bot_channels` LEFT JOIN `bots` ON `botid` = `bots`.`id` WHERE `chanid` = '%d' AND `botclass` = '%d'", chan->channel_id, BOTID);
res = mysql_use();
row = mysql_fetch_row(res);