mirror of
				https://github.com/Mikaela/Limnoria.git
				synced 2025-10-31 23:57:22 +01:00 
			
		
		
		
	Channel: Fix capability check in alertOps, to check the target instead of sender.
This commit is contained in:
		
							parent
							
								
									c93493901e
								
							
						
					
					
						commit
						f468557899
					
				| @ -950,7 +950,11 @@ class Channel(callbacks.Plugin): | ||||
|         if frm is not None: | ||||
|             s += format(_(' (from %s)'), frm) | ||||
|         for nick in irc.state.channels[channel].users: | ||||
|             if ircdb.checkCapability(msg.prefix, capability): | ||||
|             prefix = irc.state.nicksToHostmasks.get(nick) | ||||
|             if not prefix: | ||||
|                 continue | ||||
|             if not ircdb.checkCapability(prefix, capability): | ||||
|                 continue | ||||
|             irc.reply(s, to=nick, private=True) | ||||
|         irc.replySuccess() | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Valentin Lorentz
						Valentin Lorentz