PyObject *wpRegisterCommand( PyObject* self, PyObject* args )
static PyObject *wpRegisterCommand( PyObject* self, PyObject* args )
PyObject *wpRegisterCommand( PyObject* self, PyObject* args ){	if( !checkArgStr( 0 ) || !checkArgStr( 1 ) )	{		PyErr_BadArgument();		return 0;	}	QString command = getArgStr( 0 );	QString scriptName = getArgStr( 1 );	cPythonScript *script = ScriptManager->find( scriptName );	if( script == 0 )	{		PyErr_SetString( PyExc_RuntimeError, "Unknown script." );		return 0;	}	ScriptManager->addCommandHook( command, script );	return PyTrue;}