renamed a few things

This commit is contained in:
Luke Rogers 2013-10-08 11:44:14 +13:00
parent cda19bc1e3
commit 19cd24f07f
3 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
# Written by Scaevolus 2010 # Written by Scaevolus 2010
from util import hook, http, text, execute from util import hook, http, text, pyexec
import string import string
import re import re
@ -128,7 +128,7 @@ def factoid(inp, message=None, db=None, bot=None, action=None, conn=None, input=
variables = 'input="""{}"""; nick="{}"; chan="{}"; bot_nick="{}";'.format(arguments.replace('"', '\\"'), variables = 'input="""{}"""; nick="{}"; chan="{}"; bot_nick="{}";'.format(arguments.replace('"', '\\"'),
input.nick, input.chan, input.nick, input.chan,
input.conn.nick) input.conn.nick)
result = execute.eval_py(variables + code) result = pyexec.eval_py(variables + code)
else: else:
result = data result = data

2
plugins/pyexec.py → plugins/python.py Executable file → Normal file
View file

@ -1,5 +1,5 @@
from util import hook from util import hook
from util.execute import eval_py from util.pyexec import eval_py
@hook.command @hook.command