From 219b6a2b2ef21772217935e79398305a086000d7 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Sun, 19 Aug 2012 07:30:46 -0700 Subject: [PATCH] /nick currentnick should do nothing --- webclient/rc.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/webclient/rc.html b/webclient/rc.html index d06f515..2e05a86 100644 --- a/webclient/rc.html +++ b/webclient/rc.html @@ -443,7 +443,7 @@ function rcinput(input) { var message; - var re = /^\/(\S+)(\s(.*))?/ + var re = /^\/(\S+)(\s(.*))?/; var match = re.exec(input); if (match) { var command = match[1]; @@ -451,6 +451,10 @@ if (command == 'me') { message = "* " + rcnick() + " " + rest; } else if (command == 'nick') { + if (rcnick() == rest) { + rcaddmessagetoUI({'Text': '-!- Your nick is already ' + rcnick(), 'ServerTimes': {}}); + return; + } message = "*** " + rcnick() + " is now known as " + rest; rcsetnick(rest); } else { -- 2.44.1