mirror of
https://github.com/ncoevoet/ChanTracker.git
synced 2025-04-27 05:21:10 -05:00
fixed problem of ip computation, new release
This commit is contained in:
parent
483ed680a1
commit
864d1f5818
@ -37,7 +37,7 @@ import supybot.world as world
|
|||||||
|
|
||||||
# Use this for the version of this plugin. You may wish to put a CVS keyword
|
# Use this for the version of this plugin. You may wish to put a CVS keyword
|
||||||
# in here if you're keeping the plugin in CVS or some similar system.
|
# in here if you're keeping the plugin in CVS or some similar system.
|
||||||
__version__ = "1.1"
|
__version__ = "1.2"
|
||||||
|
|
||||||
# XXX Replace this with an appropriate author or supybot.Author instance.
|
# XXX Replace this with an appropriate author or supybot.Author instance.
|
||||||
__author__ = supybot.authors.unknown
|
__author__ = supybot.authors.unknown
|
||||||
|
@ -92,6 +92,7 @@ def matchHostmask (pattern,n):
|
|||||||
if len(L) == 1:
|
if len(L) == 1:
|
||||||
cache[n.prefix] = L[0]
|
cache[n.prefix] = L[0]
|
||||||
n.setIp(L[0])
|
n.setIp(L[0])
|
||||||
|
cache[n.prefix] = n.ip
|
||||||
except:
|
except:
|
||||||
cache[n.prefix] = None
|
cache[n.prefix] = None
|
||||||
if n.ip != None and ircutils.hostmaskPatternEqual(pattern,'%s!%s@%s' % (nick,ident,n.ip)):
|
if n.ip != None and ircutils.hostmaskPatternEqual(pattern,'%s!%s@%s' % (nick,ident,n.ip)):
|
||||||
@ -2190,10 +2191,10 @@ class ChanTracker(callbacks.Plugin,plugins.ChannelDBHandler):
|
|||||||
account = None
|
account = None
|
||||||
n = self.getNick(irc,nick)
|
n = self.getNick(irc,nick)
|
||||||
prefix = '%s!%s@%s' % (nick,ident,host)
|
prefix = '%s!%s@%s' % (nick,ident,host)
|
||||||
|
n.setPrefix(prefix)
|
||||||
if n.ip == None and ip != '255.255.255.255':
|
if n.ip == None and ip != '255.255.255.255':
|
||||||
# validate ip
|
# validate ip
|
||||||
n.setIp(ip)
|
n.setIp(ip)
|
||||||
n.setPrefix(prefix)
|
|
||||||
n.setAccount(account)
|
n.setAccount(account)
|
||||||
n.setRealname(realname)
|
n.setRealname(realname)
|
||||||
#channel = msg.args[1]
|
#channel = msg.args[1]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user