diff options
| author | David Phillips <david@yeah.nah.nz> | 2019-01-25 20:23:18 +1300 | 
|---|---|---|
| committer | David Phillips <david@yeah.nah.nz> | 2019-01-25 20:23:18 +1300 | 
| commit | 19e26ac7fb21a16761859553487df0148b7f2914 (patch) | |
| tree | 6722d2fc2a0fcd67905859835fdbd00d41394ee5 | |
| parent | a559dfeefa6983eae67fb678e288e8bdd09328e1 (diff) | |
| download | idalius-19e26ac7fb21a16761859553487df0148b7f2914.tar.xz | |
Natural: Fix incorrect sub invocation
| -rw-r--r-- | Plugin/Natural.pm | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/Plugin/Natural.pm b/Plugin/Natural.pm index 501bf11..3d16eed 100644 --- a/Plugin/Natural.pm +++ b/Plugin/Natural.pm @@ -94,7 +94,8 @@ sub on_message {  	}  	my $response; -	if ($what =~ /\b\Q$irc->nick_name()\E\b/) { +	my $own_nick = $irc->nick_name(); +	if ($what =~ /\b\Q$own_nick\E\b/) {  		return unless mention_odds();  		$response = choose_mention_response($what, $nick);  	} else { | 
