Skip to content

Commit

Permalink
Improve typing notice.
Browse files Browse the repository at this point in the history
  • Loading branch information
meh committed May 18, 2012
1 parent 7a65c5a commit 1ce88ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion perl/irssi/bitlbee_typing_notice.pl
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ sub typing {
return unless $server->isupport('NETWORK') eq 'BitlBee';

if (my ($type) = $msg =~ /TYPING ([0-9])/) {
unless ($protocols->{$address}) {
unless ($querying->{$from} || defined $protocols->{$address}) {
$querying->{$from} = 1;

$server->command("whois $from");
Expand Down Expand Up @@ -116,6 +116,8 @@ sub typing {
}

if ($number == 318) {
$protocols->{$address} = 0;

delete $querying->{$nick};
}
}
Expand Down

0 comments on commit 1ce88ed

Please sign in to comment.