diff options
| author | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:45 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:45 +0200 |
| commit | d34015c5ba231b95de20e9fcd7a33c5b2b9a1006 (patch) | |
| tree | ceac33bd27e3b1158a0ac4e17f7fd7e5e6473fea /src/sman.cpp | |
| parent | c507ce3198ea4d822832cc8740f0128df8873c02 (diff) | |
tagging ychat-0.5.3ychat-0.5.3
Diffstat (limited to 'src/sman.cpp')
| -rw-r--r-- | src/sman.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/sman.cpp b/src/sman.cpp index 96c638f..dd2138f 100644 --- a/src/sman.cpp +++ b/src/sman.cpp @@ -12,7 +12,6 @@ sman::~sman() { delete this->sessions; } - string sman::generateId( int len ) { string valid_chars="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_"; @@ -30,18 +29,11 @@ sess *sman::createSession( ) string new_id=this->generateId(s_tool::string2int( s_conf::get ().get_val( "SESSION_LENGTH" ) ) ); - sess* p_sess = getSession(new_id); - - // Prove if session id already exists. - if (p_sess) - return createSession(); - sess *new_sess= new sess( new_id ); this->sessioncount++; this->sessions->add_elem( new_sess, new_id ); - return new_sess; } |
