summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2013-11-11 18:28:52 +0100
committerlassulus <lassulus@googlemail.com>2013-11-11 18:28:52 +0100
commit27f21424befaf1d10877d53d9754c88b43f42903 (patch)
tree410d8ff61179c9a823f04e6e7b4ab4e4aa2f0ff0
parent2197882bc5a131ed7c877505ac66cbfa02679273 (diff)
webchat: removed unneccesessary check
-rw-r--r--webchat/serverCommands.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/webchat/serverCommands.js b/webchat/serverCommands.js
index 05c9ea0e..8f2875b9 100644
--- a/webchat/serverCommands.js
+++ b/webchat/serverCommands.js
@@ -12,7 +12,7 @@ serverCommands.say = function (settings, params) {
}
serverCommands.nick = function (settings, params) {
- var oldnick = settings.nick || settings.conn.remoteAddress
+ var oldnick = settings.nick
var newnick = params.nick
settings.nick = newnick
return clients.notifyAll('nickchange', { nick: oldnick, newnick: newnick });