projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixed cmd_addbot, cmd_setbot: resolve_botalias value should be checked for -1 (not...
[NeonServV5.git]
/
src
/
cmd_global_addbot.c
diff --git
a/src/cmd_global_addbot.c
b/src/cmd_global_addbot.c
index 3c12865ac9db57a742d38ce01edb4d284f6bc652..76dd5c6ca4098ad0085db1f120c683a947cec3ca 100644
(file)
--- a/
src/cmd_global_addbot.c
+++ b/
src/cmd_global_addbot.c
@@
-25,7
+25,7
@@
CMD_BIND(global_cmd_addbot) {
MYSQL_RES *res;
int botid;
- if((botid = resolve_botalias(argv[1]))
!
= -1) {
+ if((botid = resolve_botalias(argv[1]))
=
= -1) {
reply(getTextBot(), user, "NS_SETBOT_INVALID_CLASS", argv[1]);
return;
}