An XXX, fixed isNick to allow keyword arguments.

This commit is contained in:
Jeremy Fincher 2004-10-15 11:22:13 +00:00
parent 1958a76897
commit 4a2d2a99d8

View File

@ -577,7 +577,6 @@ registerGlobalValue(supybot.commands.defaultPlugins, 'importantPlugins',
# supybot.commands.disabled moved to callbacks for canonicalName.
###
# supybot.abuse. For stuff relating to abuse of the bot.
###
@ -637,6 +636,9 @@ registerGlobalValue(supybot.drivers, 'module',
###
# supybot.directories, for stuff relating to directories.
###
# XXX This shouldn't make directories willy-nilly. As it is now, if it's
# configured, it'll still make the default directories, I think.
class Directory(registry.String):
def __call__(self):
# ??? Should we perhaps always return an absolute path here?
@ -794,10 +796,10 @@ registerGlobalValue(supybot.databases.types.cdb, 'maximumModifications',
# Protocol information.
###
originalIsNick = ircutils.isNick
def isNick(s, strictRfc=None):
def isNick(s, strictRfc=None, **kw):
if strictRfc is None:
strictRfc = supybot.protocols.irc.strictRfc()
return originalIsNick(s, strictRfc=strictRfc)
return originalIsNick(s, strictRfc=strictRfc, **kw)
ircutils.isNick = isNick
###