summaryrefslogtreecommitdiff
path: root/npc/commands/discord.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-11-18 16:01:52 -0300
committerJesusaves <cpntb1@ymail.com>2021-11-18 16:01:52 -0300
commit99f51abecd3e687370cfdbe9313625d0ab81e341 (patch)
tree41d334bb97f208b4da30c84786eb36c2103c55d0 /npc/commands/discord.txt
parent85424958f4710ac809c21e156c29a9c418a6cd2a (diff)
downloadserverdata-99f51abecd3e687370cfdbe9313625d0ab81e341.tar.gz
serverdata-99f51abecd3e687370cfdbe9313625d0ab81e341.tar.bz2
serverdata-99f51abecd3e687370cfdbe9313625d0ab81e341.tar.xz
serverdata-99f51abecd3e687370cfdbe9313625d0ab81e341.zip
Actually, do not understimate trolls.
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 0aa56660e..e411de419 100644
--- a/npc/commands/discord.txt
+++ b/npc/commands/discord.txt
@@ -77,9 +77,10 @@ OnCall:
mesc l("Username#0000"), 2;
input .@discord$;
if (.@discord$ == "") close;
+ if (strtolower(.@discord$) == "username#0000") { break; }
.@i = explode(.@d$, .@discord$, "#");
- if (.@i != 2) { mesc l("Invalid Discord ID. (L1)"); next; break; }
- if (getstrlen(.@d$[1]) != 4) { mesc l("Invalid Discord ID. (L2)"); next; break; }
+ if (.@i != 2) { mesc l("Invalid Discord ID."); next; break; }
+ if (getstrlen(.@d$[1]) != 4) { mesc l("Invalid Discord ID."); next; break; }
mes "";
clear;
mesc l("Linking the following Discord account:");