diff options
Diffstat (limited to 'user.cpp')
| -rwxr-xr-x | user.cpp | 23 |
1 files changed, 1 insertions, 22 deletions
@@ -5,7 +5,6 @@ #include "user.h" #include "s_conf.h" -#include "s_modl.h" #include "s_tool.h" using namespace std; @@ -115,27 +114,7 @@ user::set_sock( int i_sock ) void user::command( string &s_command ) { - - auto unsigned int pos = s_command.find( "/" ); - while( pos != string::npos ) - { - s_command.replace( pos, 1, "" ); - pos = s_command.find( "/" ); - } - - string s_mod( "cmnd/yc_" ); - s_mod.append( s_command ).append( ".so" ); - - dynmod *mod = s_modl::get().get_module( s_mod ); - - if ( mod == NULL ) - { - msg_post( new string( s_lang::get().get_val( "ERRORCMD" ) ) ); - return; - } - - // execute the module. - ( *(mod->the_func) ) ( (void*) this ); + msg_post( new string( ERRORCMD ) ); } void |
