Another year is about to end... So we have to update these damn copyright information :P
[NeonServV5.git] / src / cmd_global_addbot.c
index 3c12865ac9db57a742d38ce01edb4d284f6bc652..d30c742f162a8956fbb4223a3c9c11bbc458969a 100644 (file)
@@ -1,5 +1,5 @@
-/* cmd_global_addbot.c - NeonServ v5.2
- * Copyright (C) 2011  Philipp Kreil (pk910)
+/* cmd_global_addbot.c - NeonServ v5.3
+ * Copyright (C) 2011-2012  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -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;
     }