Skip Menu |

This queue is for tickets about the POE-Component-Server-IRC CPAN distribution.

Report information
The Basics
Id: 39701
Status: resolved
Worked: 30 min
Priority: 0/
Queue: POE-Component-Server-IRC

People
Owner: BINGOS [...] cpan.org
Requestors: hinrik.sig [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Wrong numeric sent for "MODE nick"
Currently it sends numeric 422 (ERR_NOMOTD) instead of the correct 221 (RPL_UMODEIS) when a client queries its user modes. The supplied patch fixes that.
Subject: umode.diff
Index: lib/POE/Component/Server/IRC.pm =================================================================== --- lib/POE/Component/Server/IRC.pm (revision 157) +++ lib/POE/Component/Server/IRC.pm (working copy) @@ -2424,7 +2424,7 @@ my $ref = [ ]; my $record = $self->{state}->{users}->{ u_irc $nick }; unless ( $umode ) { - push @{ $ref }, { prefix => $server, command => '422', params => [ $nick, '+' . $record->{umode} ] }; + push @{ $ref }, { prefix => $server, command => '221', params => [ $nick, '+' . $record->{umode} ] }; } else { my $peer_ignore; my $parsed_mode = parse_mode_line( $umode );
Patch applied. Regression test written. New release uploaded to CPAN. Many thanks. Chris 'BinGOs' Williams