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 );