summaryrefslogtreecommitdiff
path: root/npc/commands/discord.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/commands/discord.txt')
-rw-r--r--npc/commands/discord.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/npc/commands/discord.txt b/npc/commands/discord.txt
index f854e23b0..2b6264519 100644
--- a/npc/commands/discord.txt
+++ b/npc/commands/discord.txt
@@ -20,7 +20,7 @@ OnCall:
close;
@discord=1;
- .@nb = query_sql("select `discord_id` from `discord` WHERE `account_id` == "+getcharid(3), .@discord$);
+ .@nb = query_sql("select `discord_name` from `discord` WHERE `account_id` == "+getcharid(3), .@discord$);
do
@@ -40,7 +40,8 @@ OnCall:
input .@discord$;
.@discord$=escape_sql(.@discord$);
mes "";
- query_sql("UPDATE `discord` SET `discord_id` = '"+.@discord$+"' 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));
break;
case 2:
query_sql("DELETE FROM `discord` WHERE `account_id` == "+getcharid(3));