Commit c9b27264ed22b681e006ab04743005c29e86cf41

Authored by Caesar Ahlenhed
1 parent 75c8d974

Now?

Showing 1 changed file with 4 additions and 4 deletions   Show diff stats
pushover.pl
... ... @@ -124,7 +124,7 @@ sub pubmsg {
124 124 my ($server, $data, $nick, $nick_addr, $target) = @_;
125 125  
126 126 if(!Irssi::settings_get_bool("pushover_general_hilight")){
127   - if($server->{usermode_away} == 1 && $data =~ /$server->{nick}/i && index(Irssi::settings_get_str("pushover_ignore_nettag"), $server->{tag}) == -1) && index(Irssi::settings_get_str("pushover_ignore_nick"), $nick) == -1){
  127 + if($server->{usermode_away} == 1 && $data =~ /$server->{nick}/i && index(Irssi::settings_get_str("pushover_ignore_nettag"), $server->{tag}) == -1 && index(Irssi::settings_get_str("pushover_ignore_nick"), $nick) == -1){
128 128 send_noti("Hilighted " . $server->{tag} . "/" . $target, $nick . ': ' . $data, Irssi::settings_get_str("pushover_priority_channel"));
129 129 }
130 130 }
... ... @@ -132,17 +132,17 @@ sub pubmsg {
132 132  
133 133 sub privmsg {
134 134 my ($server, $data, $nick) = @_;
135   - if($server->{usermode_away} == 1 && index(Irssi::settings_get_str("pushover_ignore_nettag"), $server->{tag}) == -1) && index(Irssi::settings_get_str("pushover_ignore_nick"), $nick) == -1){
  135 + if($server->{usermode_away} == 1 && index(Irssi::settings_get_str("pushover_ignore_nettag"), $server->{tag}) == -1 && index(Irssi::settings_get_str("pushover_ignore_nick"), $nick) == -1){
136 136 send_noti("PM @ " . $server->{tag}, $nick . ': ' . $data, Irssi::settings_get_str("pushover_priority_pm"));
137 137 }
138 138 }
139 139  
140 140 sub genhilight {
141   - my($dest, $text, $stripped, $nick) = @_;
  141 + my($dest, $text, $stripped) = @_;
142 142 my $server = $dest->{server};
143 143  
144 144 if($dest->{level} & MSGLEVEL_HILIGHT) {
145   - if($server->{usermode_away} == 1 && index(Irssi::settings_get_str("pushover_ignore_nettag"), $server->{tag}) == -1) && index(Irssi::settings_get_str("pushover_ignore_nick"), $nick) == -1){
  145 + if($server->{usermode_away} == 1 && index(Irssi::settings_get_str("pushover_ignore_nettag"), $server->{tag}) == -1){
146 146 if(Irssi::settings_get_bool("pushover_general_hilight")){
147 147 send_noti("General Hilight " . $server->{tag} . "/" . $dest->{target}, $stripped, Irssi::settings_get_str("pushover_priority_general"));
148 148 }
... ...