mirror of https://github.com/Mikaela/Limnoria.git
Make getBanmask use protocols.irc.banmask.makeBanmask
This commit is contained in:
parent
89874f0c3f
commit
abb83d4863
|
@ -1,5 +1,6 @@
|
||||||
###
|
###
|
||||||
# Copyright (c) 2002-2005, Jeremiah Fincher
|
# Copyright (c) 2002-2005, Jeremiah Fincher
|
||||||
|
# Copyright (c) 2009, James Vega
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -275,8 +276,10 @@ def getHostmask(irc, msg, args, state):
|
||||||
|
|
||||||
def getBanmask(irc, msg, args, state):
|
def getBanmask(irc, msg, args, state):
|
||||||
getHostmask(irc, msg, args, state)
|
getHostmask(irc, msg, args, state)
|
||||||
# XXX Channel-specific stuff.
|
if not state.channel:
|
||||||
state.args[-1] = ircutils.banmask(state.args[-1])
|
getChannel(irc, msg, args, state)
|
||||||
|
banmaskstyle = conf.supybot.protocols.irc.banmask
|
||||||
|
state.args[-1] = banmaskstyle.makeBanmask(state.args[-1])
|
||||||
|
|
||||||
def getUser(irc, msg, args, state):
|
def getUser(irc, msg, args, state):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue