Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
irc: don't worry about username
Browse files Browse the repository at this point in the history
  • Loading branch information
jprjr committed Dec 10, 2016
1 parent 4d9a6f4 commit 69fe465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/irc/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ function IRCServer.startClient(sock,server)
local creds = ngx.decode_base64(msg.args[1]):split(char(0))
user = User:login(creds[2],creds[3])
if user then
if user.username ~= nickname or user.username ~= username then
if user.username ~= nickname then
insert(send_buffer,':{hostname} 902 {nick} :You must use a nick assigned to you')
user = nil
else
Expand Down

0 comments on commit 69fe465

Please sign in to comment.