mirror of
				https://github.com/Mikaela/Limnoria.git
				synced 2025-10-31 15:47:25 +01:00 
			
		
		
		
	Made tell not tell lobotomized channels.
This commit is contained in:
		
							parent
							
								
									81339b68b6
								
							
						
					
					
						commit
						f12c1ba8ff
					
				| @ -432,6 +432,11 @@ class Misc(callbacks.Privmsg): | ||||
|         if not ircutils.isNick(target) and not ircutils.isChannel(target): | ||||
|             irc.error('%s is not a valid nick or channel.' % target) | ||||
|             return | ||||
|         if ircutils.isChannel(target): | ||||
|             c = ircdb.channels.getChannel(target) | ||||
|             if c.lobotomized: | ||||
|                 irc.error('I\'m lobotomized in %s.' % target) | ||||
|                 return | ||||
|         s = '%s wants me to tell you: %s' % (msg.nick, text) | ||||
|         irc.reply(s, to=target, private=True) | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Jeremy Fincher
						Jeremy Fincher