For the millionth time trying to fix hilight.
This commit is contained in:
		
							
								
								
									
										10
									
								
								sound.pl
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								sound.pl
									
									
									
									
									
								
							| @@ -237,17 +237,17 @@ my $window = Irssi::active_server(); | ||||
|     return; | ||||
|   } else { | ||||
|       if (my $hilightcmd = Irssi::settings_get_str("hilight_sound_command")) { | ||||
|           if ($flood_protect) { | ||||
|               my $sound_flood = Irssi::settings_get_int('sound_flood'); | ||||
|               $sound_flood = 1000 if $sound_flood < 0; | ||||
|               Irssi::timeout_remove($sound_tag); | ||||
|               $sound_tag = Irssi::timeout_add($sound_flood, 'sound_overflow_timeout', undef); | ||||
|         if (!($server && | ||||
|                   $dest->{level} & (MSGLEVEL_HILIGHT) && | ||||
|                   $server->ischannel($dest->{target}) && | ||||
| $window->{refnum} != $dest->{window}->{refnum})) { | ||||
|                 return; | ||||
|         } | ||||
|           if ($flood_protect) { | ||||
|               my $sound_flood = Irssi::settings_get_int('sound_flood'); | ||||
|               $sound_flood = 1000 if $sound_flood < 0; | ||||
|               Irssi::timeout_remove($sound_tag); | ||||
|               $sound_tag = Irssi::timeout_add($sound_flood, 'sound_overflow_timeout', undef); | ||||
|               system($hilightcmd); | ||||
|         $flood_protect = 0; | ||||
|       } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user