Skip to content

Commit

Permalink
fixed #19 - Nicknames should be case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
shanet committed Aug 7, 2013
1 parent c85a8f1 commit 933d240
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cryptully/network/connectionManager.py
Expand Up @@ -52,7 +52,7 @@ def disconnectFromServer(self):


def openChat(self, destNick):
self.__createClient(destNick, initiateHandshakeOnStart=True)
self.__createClient(destNick.lower(), initiateHandshakeOnStart=True)


def __createClient(self, nick, initiateHandshakeOnStart=False):
Expand Down
2 changes: 1 addition & 1 deletion cryptully/qt/qNickInputWidget.py
Expand Up @@ -60,7 +60,7 @@ def __init__(self, image, imageWidth, connectClickedSlot, nick='', parent=None):


def __connectClicked(self):
nick = str(self.nickEdit.text())
nick = str(self.nickEdit.text()).lower()

# Validate the given nick
nickStatus = utils.isValidNick(nick)
Expand Down
4 changes: 2 additions & 2 deletions cryptully/server/turnServer.py
Expand Up @@ -246,9 +246,9 @@ def run(self):
printAndLog(self.nick + ": requested to send message to invalid nick")
self.__handleError(errors.ERR_INVALID_NICK)

client = nickMap[destNick]
client = nickMap[destNick.lower()]

# Rewrite the nick to prevent nick spoofing
# Rewrite the source nick to prevent nick spoofing
message.sourceNick = self.nick

client.send(message)
Expand Down

0 comments on commit 933d240

Please sign in to comment.