projects
/
NeonServV5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
21c0b22
)
fixed small mysql error on cmd_setbot
author
pk910
<philipp@zoelle1.de>
Thu, 22 Dec 2011 00:27:04 +0000
(
01:27
+0100)
committer
pk910
<philipp@zoelle1.de>
Thu, 22 Dec 2011 00:27:04 +0000
(
01:27
+0100)
src/cmd_global_setbot.c
patch
|
blob
|
history
diff --git
a/src/cmd_global_setbot.c
b/src/cmd_global_setbot.c
index 99587d6f4cd58e5964e00340500d80508f316ac0..767171580bd7e4577cc70d7d5f45684658b934f4 100644
(file)
--- a/
src/cmd_global_setbot.c
+++ b/
src/cmd_global_setbot.c
@@
-477,7
+477,7
@@
static int global_cmd_setbot_maxchan(struct UserNode *user, MYSQL_ROW bot, char
reply(getTextBot(), user, "NS_SETBOT_MAXCHAN_INVALID", value);
return 0;
}
reply(getTextBot(), user, "NS_SETBOT_MAXCHAN_INVALID", value);
return 0;
}
- printf_mysql_query("UPDATE `bots` SET `max
chan
` = '%d' WHERE `id` = '%s'", val, bot[15]);
+ printf_mysql_query("UPDATE `bots` SET `max
_channels
` = '%d' WHERE `id` = '%s'", val, bot[15]);
ret = 1;
}
reply(getTextBot(), user, "\002MAXCHAN \002 %d", val);
ret = 1;
}
reply(getTextBot(), user, "\002MAXCHAN \002 %d", val);