diff options
| author | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:44 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:44 +0200 |
| commit | c507ce3198ea4d822832cc8740f0128df8873c02 (patch) | |
| tree | 260ca004916ae03b7d5438bf89007e3984da6934 /user.cpp | |
| parent | c8b2ef7b899766d04562f7e04a84251cea8fa701 (diff) | |
tagging ychat-0.3ychat-0.3
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 |
