Skip to content

Commit

Permalink
Still a problem with TOPIC command. Fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
bingos committed Dec 29, 2006
1 parent 85db932 commit 39bca4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Changes
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
Revision history for Perl extension POE::Component::IRC.

5.18 DATE
5.18 Fri Dec 29 10:55:05 GMT 2006
- Documentation fix to ::Plugin by Kinks.
- Still a problem with TOPIC command. Fixed.

5.17 Tue Dec 12 22:52:48 GMT 2006
- Serious bug in TOPIC handling spotted. Fixed.
Expand Down
6 changes: 2 additions & 4 deletions lib/POE/Component/IRC.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1631,11 +1631,9 @@ sub spacesep {

# Set or query the current topic on a channel.
sub topic {
my ($kernel, $chan) = @_[KERNEL, ARG0];
my ($kernel,$chan,@args) = @_[KERNEL,ARG0,ARG1..$#_];
my $topic;
if ( scalar @_[ARG1 .. $#_] ) {
$topic = join '', @_[ARG1 .. $#_];
}
$topic = join '', @args if scalar @args;

if ( defined $topic ) {
$chan .= " :";
Expand Down

0 comments on commit 39bca4a

Please sign in to comment.