Changeset 03df717 for irc_im.c


Ignore:
Timestamp:
2015-12-01T04:45:20Z (8 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
05aba55
Parents:
398a139
git-author:
dequis <dx@…> (01-12-15 04:38:30)
git-committer:
dequis <dx@…> (01-12-15 04:45:20)
Message:

Add 'log' UI function, to avoid direct calls to irc_rootmsg from nogaim

Just a trivial wrapper over irc_rootmsg(), but will help me to slightly
reduce the ugliness of an unavoidably ugly hack for libpurple.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_im.c

    r398a139 r03df717  
    11091109}
    11101110
     1111static void bee_irc_log(bee_t *bee, const char *tag, const char *msg)
     1112{
     1113        irc_t *irc = (irc_t *) bee->ui_data;
     1114
     1115        irc_rootmsg(irc, "%s - %s", tag, msg);
     1116}
     1117
    11111118const struct bee_ui_funcs irc_ui_funcs = {
    11121119        bee_irc_imc_connected,
     
    11371144        bee_irc_ft_close,
    11381145        bee_irc_ft_finished,
     1146
     1147        bee_irc_log,
    11391148};
Note: See TracChangeset for help on using the changeset viewer.