projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed small mysql error on cmd_setbot
[NeonServV5.git]
/
src
/
cmd_global_setbot.c
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);