Browse files

Fix for case sensitivity of PMs (issue #101).

  • Loading branch information...
1 parent 03387e8 commit 10a3cc58534c37c5d24cd3e7f7d77959cfc4e264 @ericbarch ericbarch committed Jul 3, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 assets/js/client.js
View
5 assets/js/client.js
@@ -332,13 +332,12 @@ $(function() {
case '/query':
case '/privmsg':
case '/msg':
- var target = commandText[1];
+ var target = commandText[1].toLowerCase();
var myNick = irc.me.get('nick');
- var logname = (myNick < target) ? myNick + target : target + myNick;
if (typeof irc.chatWindows.getByName(target) === 'undefined') {
irc.chatWindows.add({name: target, type: 'pm'});
}
- irc.socket.emit('getOldMessages',{channelName: logname, skip:-50, amount: 50});
+ irc.socket.emit('getOldMessages',{channelName: target, skip:-50, amount: 50});
irc.socket.emit('say', {
target: target,
message: commandText.splice(2).join(" ")

0 comments on commit 10a3cc5

Please sign in to comment.