mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-25 20:41:21 -05:00
fix ip not decalred error
This commit is contained in:
parent
0ea80a26e9
commit
66e5fecd6a
@ -62,6 +62,8 @@ class Geo(callbacks.Plugin):
|
||||
except:
|
||||
irc.reply("Invalid nick/hostname {0}".format(stuff))
|
||||
return
|
||||
elif utils.net.isIP(stuff):
|
||||
ip = stuff
|
||||
else:
|
||||
irc.reply("invalid nick or hostname/ip {0}".format(stuff))
|
||||
res = reader.city(ip)
|
||||
|
Loading…
x
Reference in New Issue
Block a user