mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-25 20:41:21 -05:00
fix calling command in private
This commit is contained in:
parent
f56d94e454
commit
74e7efb385
@ -49,7 +49,11 @@ class Geo(callbacks.Plugin):
|
||||
except:
|
||||
irc.reply("Update failed.")
|
||||
return
|
||||
if stuff.lower() in (nick.lower() for nick in list(irc.state.channels[channel].users)):
|
||||
if not irc.isChannel(channel):
|
||||
private = True
|
||||
else:
|
||||
private = False
|
||||
if not private and stuff.lower() in (nick.lower() for nick in list(irc.state.channels[channel].users)):
|
||||
try:
|
||||
stuff = irc.state.nickToHostmask(stuff).split('@')[1]
|
||||
ip = socket.gethostbyname(stuff)
|
||||
|
Loading…
x
Reference in New Issue
Block a user