mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-29 15:01:11 -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:
|
except:
|
||||||
irc.reply("Invalid nick/hostname {0}".format(stuff))
|
irc.reply("Invalid nick/hostname {0}".format(stuff))
|
||||||
return
|
return
|
||||||
|
elif utils.net.isIP(stuff):
|
||||||
|
ip = stuff
|
||||||
else:
|
else:
|
||||||
irc.reply("invalid nick or hostname/ip {0}".format(stuff))
|
irc.reply("invalid nick or hostname/ip {0}".format(stuff))
|
||||||
res = reader.city(ip)
|
res = reader.city(ip)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user