Changeset 4023 for trunk/console
- Timestamp:
- 02/22/05 00:36:37 (4 years ago)
- Location:
- trunk/console/src
- Files:
-
- 2 modified
-
console.cpp (modified) (2 diffs)
-
console_print.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/console/src/console.cpp
r3950 r4023 210 210 211 211 m_bExit = false; 212 cdkUserList = 0; 212 213 } 213 214 … … 291 292 else 292 293 { 293 ICQOwner *o = gUserManager.FetchOwner(L OCK_R);294 ICQOwner *o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 294 295 if (o->Password()[0] == '\0') 295 296 { -
trunk/console/src/console_print.cpp
r3933 r4023 386 386 s->pos = i; 387 387 s->nPPID = (*it)->nPPID; 388 s->color = (*it)->color;388 s->color = (*it)->color; 389 389 sprintf(s->szId, "%s", (*it)->szId); 390 390 … … 416 416 * CLicqConsole::UserListHighlight 417 417 *-------------------------------------------------------------------------*/ 418 void CLicqConsole::UserListHighlight(chtype type, chtype input) { 418 void CLicqConsole::UserListHighlight(chtype type, chtype input) 419 { 419 420 // There has got to be a better way to do this... 420 421 list <SScrollUser *>::iterator it; … … 428 429 for (it = m_lScrollUsers.begin(); it != m_lScrollUsers.end(); it++) 429 430 { 430 if ((*it)->pos == cdkUserList->currentItem + down)431 if ((*it)->pos == (cdkUserList->currentItem + down)) 431 432 { 432 433 ICQUser *u = gUserManager.FetchUser((*it)->szId, (*it)->nPPID, LOCK_R); 433 if (u ->NewMessages())434 if (u && u->NewMessages()) 434 435 setCDKScrollHighlight(cdkUserList, COLOR_PAIR((*it)->color->nColor - 6) | type); 435 436 else
