summaryrefslogtreecommitdiff
path: root/npc/commands
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-10-17 01:18:17 -0300
committerJesusaves <cpntb1@ymail.com>2018-10-17 01:18:17 -0300
commit8ad9c660dcbf1c74effb6c59810454d57b841c55 (patch)
tree6fbfb0edd51306541bd5fa394ceaf6fd6a81af95 /npc/commands
parente315d701d4d56421909c3b4de45a67abe1a1c80d (diff)
downloadserverdata-8ad9c660dcbf1c74effb6c59810454d57b841c55.tar.gz
serverdata-8ad9c660dcbf1c74effb6c59810454d57b841c55.tar.bz2
serverdata-8ad9c660dcbf1c74effb6c59810454d57b841c55.tar.xz
serverdata-8ad9c660dcbf1c74effb6c59810454d57b841c55.zip
Fix broken command
Diffstat (limited to 'npc/commands')
-rw-r--r--npc/commands/discord.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/npc/commands/discord.txt b/npc/commands/discord.txt
index 43c4758c6..b34f46423 100644
--- a/npc/commands/discord.txt
+++ b/npc/commands/discord.txt
@@ -20,7 +20,7 @@ OnCall:
close;
@discord=1;
- .@nb = query_sql("select `discord_name` from `discord` WHERE `account_id` == "+getcharid(3), .@discord$);
+ .@nb = query_sql("select `discord_name` from `discord` WHERE `account_id` == '"+getcharid(3)+"'", .@discord$);
do
@@ -40,13 +40,13 @@ OnCall:
input .@discord$;
.@discord$=escape_sql(.@discord$);
mes "";
- query_sql("UPDATE `discord` SET `discord_name` = '"+.@discord$+"' WHERE `account_id` == "+getcharid(3));
- query_sql("UPDATE `discord` SET `verified` = '0' WHERE `account_id` == "+getcharid(3));
- query_sql("UPDATE `discord` SET `discord_id` = '' WHERE `account_id` == "+getcharid(3));
+ query_sql("UPDATE `discord` SET `discord_name` = '"+.@discord$+"' WHERE `account_id` == '"+getcharid(3)+"'");
+ query_sql("UPDATE `discord` SET `verified` = '0' WHERE `account_id` == '"+getcharid(3)+"'");
+ query_sql("UPDATE `discord` SET `discord_id` = '' WHERE `account_id` == '"+getcharid(3)+"'");
mesc l("You must send ##B/verify##b to Discord bot for the linking be complete."), 1;
break;
case 2:
- query_sql("DELETE FROM `discord` WHERE `account_id` == "+getcharid(3));
+ query_sql("DELETE FROM `discord` WHERE `account_id` == '"+getcharid(3)+"'");
.@discord$="";
break;
}