diff options
author | Frug <frugen@gmail.com> | 2014-07-01 18:43:28 -0400 |
---|---|---|
committer | Frug <frugen@gmail.com> | 2014-07-01 18:43:28 -0400 |
commit | 1440573b94142aaa9997063be6bf7d1d5cb64263 (patch) | |
tree | 34a474f4911c52204bddbe1789fbaa1f688ac019 | |
parent | b05f96607c10957f34421edfc356e211cf503b04 (diff) | |
download | AJAX-Chat-1440573b94142aaa9997063be6bf7d1d5cb64263.zip AJAX-Chat-1440573b94142aaa9997063be6bf7d1d5cb64263.tar.gz AJAX-Chat-1440573b94142aaa9997063be6bf7d1d5cb64263.tar.bz2 |
more cleanup
-rw-r--r-- | chat/js/chat.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/chat/js/chat.js b/chat/js/chat.js index e0b1f47..c76595f 100644 --- a/chat/js/chat.js +++ b/chat/js/chat.js @@ -670,10 +670,9 @@ var ajaxChat = { playSoundOnNewMessage: function(dateObject, userID, userName, userRole, messageID, messageText, channelID, ip) { if(this.settings['audio'] && this.sounds && this.lastID && !this.channelSwitch) { - console.log(this.settings['soundPrivate']); + var messageParts = messageText.split(' ', 1); switch(userID) { case this.chatBotID: - var messageParts = messageText.split(' ', 1); switch(messageParts[0]) { case '/login': case '/channelEnter': @@ -701,7 +700,6 @@ var ajaxChat = { } break; default: - var messageParts = messageText.split(' ', 1); switch(messageParts[0]) { case '/privmsg': this.playSound(this.settings['soundPrivate']); |