Changeset 3901 for trunk/console
- Timestamp:
- 09/24/04 18:03:06 (4 years ago)
- Files:
-
- 1 modified
-
trunk/console/src/console_print.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/console/src/console_print.cpp
r3801 r3901 130 130 werase(winStatus->Win()); 131 131 132 unsigned short nNumOwnerEvents = 0; 132 133 ICQOwner *o = gUserManager.FetchOwner(LOCK_R); 133 unsigned short nNumOwnerEvents = o->NewMessages(); 134 gUserManager.DropOwner(); 134 if (o != NULL) 135 { 136 nNumOwnerEvents = o->NewMessages(); 137 gUserManager.DropOwner(); 138 } 135 139 unsigned short nNumUserEvents = ICQUser::getNumUserEvents() - nNumOwnerEvents; 136 140 if (nNumOwnerEvents > 0) … … 156 160 strcpy(szLastUser, "<None>"); 157 161 158 o = gUserManager.FetchOwner(LOCK_R);159 162 wbkgdset(winStatus->Win(), COLOR_PAIR(COLOR_WHITE)); 160 163 mvwhline(winStatus->Win(), 0, 0, ACS_HLINE, COLS); … … 163 166 164 167 wbkgdset(winStatus->Win(), COLOR_PAIR(COLOR_YELLOW_BLUE)); 165 winStatus->wprintf("%C%A[ %C%s %C(%C%ld%C) - S: %C%s %C- G: %C%s %C- M: %C%s %C- L: %C%s %C]", COLOR_YELLOW_BLUE, 166 A_BOLD, COLOR_WHITE_BLUE, o->GetAlias(), COLOR_YELLOW_BLUE, 167 COLOR_WHITE_BLUE, o->Uin(), COLOR_YELLOW_BLUE, 168 COLOR_CYAN_BLUE, o->StatusStr(), COLOR_YELLOW_BLUE, 169 COLOR_CYAN_BLUE, CurrentGroupName(), COLOR_YELLOW_BLUE, 170 COLOR_CYAN_BLUE, szMsgStr, COLOR_YELLOW_BLUE, COLOR_CYAN_BLUE, 171 szLastUser, COLOR_YELLOW_BLUE); 172 gUserManager.DropOwner(); 168 169 o = gUserManager.FetchOwner(LOCK_R); 170 if (o != NULL) 171 { 172 winStatus->wprintf("%C%A[ %C%s %C(%C%ld%C) - S: %C%s %C- G: %C%s %C- M: %C%s %C- L: %C%s %C]", COLOR_YELLOW_BLUE, 173 A_BOLD, COLOR_WHITE_BLUE, o->GetAlias(), COLOR_YELLOW_BLUE, 174 COLOR_WHITE_BLUE, o->Uin(), COLOR_YELLOW_BLUE, 175 COLOR_CYAN_BLUE, o->StatusStr(), COLOR_YELLOW_BLUE, 176 COLOR_CYAN_BLUE, CurrentGroupName(), COLOR_YELLOW_BLUE, 177 COLOR_CYAN_BLUE, szMsgStr, COLOR_YELLOW_BLUE, COLOR_CYAN_BLUE, 178 szLastUser, COLOR_YELLOW_BLUE); 179 gUserManager.DropOwner(); 180 } 173 181 wclrtoeol(winStatus->Win()); 174 182 winStatus->RefreshWin();
