comparison mcabber/buddies.c @ 22:6a97e7cd00d9

[/trunk] Changeset 37 by mikael * Unexport the scr_SearchWindow() function. Use the new scr_IsHiddenMessage() function instead.
author mikael
date Sun, 27 Mar 2005 19:32:38 +0000
parents 00183c49c45e
children
comparison
equal deleted inserted replaced
21:7eeda3a06b21 22:6a97e7cd00d9
215 struct list_head *pos, *nn; 215 struct list_head *pos, *nn;
216 int i = 1; 216 int i = 1;
217 int n; 217 int n;
218 int maxx, maxy; 218 int maxx, maxy;
219 int fakeOffset = buddyOffset; 219 int fakeOffset = buddyOffset;
220 window_entry_t *wintmp;
221 220
222 getmaxyx(win, maxy, maxx); 221 getmaxyx(win, maxy, maxx);
223 222
224 223
225 /* cleanup of roster window */ 224 /* cleanup of roster window */
240 fakeOffset--; 239 fakeOffset--;
241 continue; 240 continue;
242 } 241 }
243 242
244 tmp = buddy_entry(pos); 243 tmp = buddy_entry(pos);
245 // FIXME: we should create a function instead of exporting this! :-( 244 if (scr_IsHiddenMessage(tmp->jid)) {
246 // Cf. revision ~28
247 wintmp = scr_SearchWindow(tmp->jid);
248 /*
249 if (wintmp)
250 scr_LogPrint("wintmp != NULL");
251 else
252 scr_LogPrint("wintmp == NULL");
253 */
254 if ((wintmp) && (wintmp->hidden_msg)) {
255 pending = '#'; 245 pending = '#';
256 } 246 }
257 247
258 if ((tmp->flags && FLAG_BUDDY_CONNECTED) == 1) { 248 if ((tmp->flags && FLAG_BUDDY_CONNECTED) == 1) {
259 status = 'o'; 249 status = 'o';