Show
Ignore:
Timestamp:
06/14/08 03:49:08 (7 months ago)
Author:
flynd
Message:

Updated to work with new group handling. I haven't tested this much but it compiles, starts and seems to work.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/console/src/console.cpp

    r6244 r6285  
    14961496    else 
    14971497    { 
    1498       GroupList *g = gUserManager.LockGroupList(LOCK_R); 
    1499       if (m_nCurrentGroup > g->size()) 
     1498      LicqGroup* group = gUserManager.FetchGroup(m_nCurrentGroup, LOCK_R); 
     1499      if (group == NULL) 
    15001500        strcpy(szGroupName, "Invalid Group"); 
    15011501      else 
    1502         strcpy(szGroupName, (*g)[m_nCurrentGroup - 1]); 
    1503       gUserManager.UnlockGroupList(); 
     1502        strcpy(szGroupName, group->name().c_str()); 
     1503      gUserManager.DropGroup(group); 
    15041504    } 
    15051505  }