Skip to content

Commit

Permalink
Only punish the user for not sending a PONG if they're unregistered
Browse files Browse the repository at this point in the history
  • Loading branch information
thesamesam committed Aug 23, 2016
1 parent fe6533b commit 93a336e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/IRCd/Client.pm
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ sub parse {
$self->{log}->debug("[$self->{nick}] Waiting to resolve host, blocking");
return;
}
if($requirePong and !$registrationCommands{uc($splitPacket[0])}) {
if(!$self->{registered} and $requirePong and !$registrationCommands{uc($splitPacket[0])}) {
$self->{log}->debug("[$self->{nick}] User attempted to register without PONG");
$self->{socket}->{sock}->write(":$ircd->{host} " . IRCd::Constants::ERR_NOTREGISTERED . " * :You have not registered\r\n");
return;
Expand Down

0 comments on commit 93a336e

Please sign in to comment.