Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/hooks.c @ 1780:e4378fbab5d7
Major API cleanup - bump API to 4
Get rid of old CamelCase names in screen.h
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 14 Mar 2010 12:09:08 +0100 |
parents | e6e89b1d7831 |
children | af3de54ef986 |
comparison
equal
deleted
inserted
replaced
1779:2911c950dcd1 | 1780:e4378fbab5d7 |
---|---|
289 // - if it's a private message | 289 // - if it's a private message |
290 // - if it's a public message and it's highlighted | 290 // - if it's a public message and it's highlighted |
291 if (settings_opt_get_int("beep_on_message")) { | 291 if (settings_opt_get_int("beep_on_message")) { |
292 if ((!is_groupchat && !(message_flags & HBB_PREFIX_ERR)) || | 292 if ((!is_groupchat && !(message_flags & HBB_PREFIX_ERR)) || |
293 (is_groupchat && (message_flags & HBB_PREFIX_HLIGHT))) | 293 (is_groupchat && (message_flags & HBB_PREFIX_HLIGHT))) |
294 scr_Beep(); | 294 scr_beep(); |
295 } | 295 } |
296 | 296 |
297 // We need to update the roster if the sender is unknown or | 297 // We need to update the roster if the sender is unknown or |
298 // if the sender is offline/invisible and a filter is set. | 298 // if the sender is offline/invisible and a filter is set. |
299 if (new_guy || | 299 if (new_guy || |
421 } | 421 } |
422 | 422 |
423 if (st_in_buf == 2 || | 423 if (st_in_buf == 2 || |
424 (st_in_buf == 1 && (status == offline || oldstat == offline))) { | 424 (st_in_buf == 1 && (status == offline || oldstat == offline))) { |
425 // Write the status change in the buddy's buffer, only if it already exists | 425 // Write the status change in the buddy's buffer, only if it already exists |
426 if (scr_BuddyBufferExists(bjid)) { | 426 if (scr_buddy_buffer_exists(bjid)) { |
427 bn = g_strdup_printf("Buddy status has changed: [%c>%c] %s", | 427 bn = g_strdup_printf("Buddy status has changed: [%c>%c] %s", |
428 imstatus2char[oldstat], imstatus2char[status], | 428 imstatus2char[oldstat], imstatus2char[status], |
429 ((status_msg) ? status_msg : "")); | 429 ((status_msg) ? status_msg : "")); |
430 scr_WriteIncomingMessage(bjid, bn, timestamp, | 430 scr_WriteIncomingMessage(bjid, bn, timestamp, |
431 HBB_PREFIX_INFO|HBB_PREFIX_NOFLAG, 0); | 431 HBB_PREFIX_INFO|HBB_PREFIX_NOFLAG, 0); |
434 } | 434 } |
435 | 435 |
436 roster_setstatus(bjid, rn, prio, status, status_msg, timestamp, | 436 roster_setstatus(bjid, rn, prio, status, status_msg, timestamp, |
437 role_none, affil_none, NULL); | 437 role_none, affil_none, NULL); |
438 buddylist_build(); | 438 buddylist_build(); |
439 scr_DrawRoster(); | 439 scr_draw_roster(); |
440 hlog_write_status(bjid, timestamp, status, status_msg); | 440 hlog_write_status(bjid, timestamp, status, status_msg); |
441 | 441 |
442 #ifdef MODULES_ENABLE | 442 #ifdef MODULES_ENABLE |
443 { | 443 { |
444 GSList *h = hk_handler_queue; | 444 GSList *h = hk_handler_queue; |