Made Core.Commands.Get/get_inputfuncs work.

This commit is contained in:
Griatch 2016-04-06 17:17:25 +02:00
parent a1c89d615e
commit 39e3618ae5
2 changed files with 3 additions and 3 deletions

View file

@ -191,7 +191,8 @@ def get_inputfuncs(session, *args, **kwargs):
it from this module alone since multiple modules could be added. it from this module alone since multiple modules could be added.
So we get it from the sessionhandler. So we get it from the sessionhandler.
""" """
inputfuncsdict = dict((key, func.__doc__) for key, func in session.sessionhandler.get_inputfuncs().iterkeys()) inputfuncsdict = dict((key, func.__doc__) for key, func
in session.sessionhandler.get_inputfuncs().iteritems())
session.msg(get_inputfuncs=inputfuncsdict) session.msg(get_inputfuncs=inputfuncsdict)

View file

@ -363,8 +363,7 @@ class TelnetOOB(object):
try: try:
cmdname, structure = data.split(None, 1) cmdname, structure = data.split(None, 1)
except ValueError: except ValueError:
self.protocol.data_in(**{data: [[],{}]}) cmdname, structure = data, ""
return
cmdname = cmdname.replace(".", "_") cmdname = cmdname.replace(".", "_")
try: try:
structure = json.loads(structure) structure = json.loads(structure)