mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-29 23:11:09 -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:
|
except:
|
||||||
irc.reply("Update failed.")
|
irc.reply("Update failed.")
|
||||||
return
|
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:
|
try:
|
||||||
stuff = irc.state.nickToHostmask(stuff).split('@')[1]
|
stuff = irc.state.nickToHostmask(stuff).split('@')[1]
|
||||||
ip = socket.gethostbyname(stuff)
|
ip = socket.gethostbyname(stuff)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user