mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Removed some debug.printfs.
This commit is contained in:
parent
3c2ce0164a
commit
1342a76b95
@ -81,20 +81,13 @@ def makeNewAlias(name, alias):
|
|||||||
channel = privmsgs.getChannel(msg, args)
|
channel = privmsgs.getChannel(msg, args)
|
||||||
alias_ = alias.replace('$channel', channel)
|
alias_ = alias.replace('$channel', channel)
|
||||||
if doDollars:
|
if doDollars:
|
||||||
debug.printf(args)
|
|
||||||
args = privmsgs.getArgs(args, needed=biggestDollar)
|
args = privmsgs.getArgs(args, needed=biggestDollar)
|
||||||
if biggestDollar == 1:
|
if biggestDollar == 1:
|
||||||
args = (args,)
|
args = (args,)
|
||||||
debug.printf(args)
|
|
||||||
def replace(m):
|
def replace(m):
|
||||||
debug.printf(m.group(1))
|
|
||||||
idx = int(m.group(1))
|
idx = int(m.group(1))
|
||||||
debug.printf(args[idx-1])
|
|
||||||
return args[idx-1]
|
return args[idx-1]
|
||||||
debug.printf(alias_)
|
|
||||||
alias_ = dollarRe.sub(replace, alias_)
|
alias_ = dollarRe.sub(replace, alias_)
|
||||||
debug.printf(alias_)
|
|
||||||
debug.printf(alias_)
|
|
||||||
self.Proxy(irc, msg, callbacks.tokenize(alias_))
|
self.Proxy(irc, msg, callbacks.tokenize(alias_))
|
||||||
f.__doc__ ='<an alias, %s arguments>\n\nAlias for %r'%(biggestDollar,alias)
|
f.__doc__ ='<an alias, %s arguments>\n\nAlias for %r'%(biggestDollar,alias)
|
||||||
#f = new.function(f.func_code, f.func_globals, name)
|
#f = new.function(f.func_code, f.func_globals, name)
|
||||||
@ -156,7 +149,6 @@ class Alias(callbacks.Privmsg):
|
|||||||
f = makeNewAlias(name, alias)
|
f = makeNewAlias(name, alias)
|
||||||
except RecursiveAlias:
|
except RecursiveAlias:
|
||||||
irc.error(msg, 'You can\'t define a recursive alias.')
|
irc.error(msg, 'You can\'t define a recursive alias.')
|
||||||
#debug.printf('setting attribute')
|
|
||||||
setattr(self.__class__, name, f)
|
setattr(self.__class__, name, f)
|
||||||
irc.reply(msg, conf.replySuccess)
|
irc.reply(msg, conf.replySuccess)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
|
Loading…
Reference in New Issue
Block a user