summaryrefslogtreecommitdiff
path: root/user.cpp
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-04-06 13:14:44 +0200
committerPaul Buetow <paul@buetow.org>2013-04-06 13:14:44 +0200
commitc507ce3198ea4d822832cc8740f0128df8873c02 (patch)
tree260ca004916ae03b7d5438bf89007e3984da6934 /user.cpp
parentc8b2ef7b899766d04562f7e04a84251cea8fa701 (diff)
tagging ychat-0.3ychat-0.3
Diffstat (limited to 'user.cpp')
-rwxr-xr-xuser.cpp23
1 files changed, 1 insertions, 22 deletions
diff --git a/user.cpp b/user.cpp
index 4cda685..057b2bc 100755
--- a/user.cpp
+++ b/user.cpp
@@ -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