Skip to content

Commit

Permalink
fix whois
Browse files Browse the repository at this point in the history
  • Loading branch information
leedo committed Oct 11, 2011
1 parent 2b72c10 commit fcbe978
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/Alice/Role/IRCCommands.pm
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,13 @@ command whois => {
cb => sub {
my ($self, $req) = @_;

my $window = $req->{window};
my $nick = $req->{opts}[0];
$req->{connection}->add_whois($nick);
},

$req->{connection}->add_whois($nick,sub {
$window->reply($_[0] ? $_[0] : "No such nick: $nick\n");
});
}
};

command me => {
Expand Down

0 comments on commit fcbe978

Please sign in to comment.