Changeset 820a2a7


Ignore:
Timestamp:
2014-02-13T19:44:53Z (10 years ago)
Author:
unknown <pesco@…>
Branches:
master
Children:
6ae1056
Parents:
74c9e7f
Message:

fix 'otr connect' command

File:
1 edited

Legend:

Unmodified
Added
Removed
  • otr.c

    r74c9e7f r820a2a7  
    968968{
    969969        irc_user_t *u;
     970        char *msg, *query = "?OTR?";
    970971
    971972        u = irc_user_by_name(irc, args[1]);
     
    981982        /* passing this through the filter so it goes through libotr which
    982983         * will replace the simple query string with a proper one */
    983         otr_filter_msg_out(u, "?OTR?", 0);
     984        msg = otr_filter_msg_out(u, query, 0);
     985
     986        /* send the message */
     987        if(msg) {
     988                u->bu->ic->acc->prpl->buddy_msg(u->bu->ic, u->bu->handle, msg, 0);  /* XXX flags? */
     989                /* XXX error message? */
     990
     991                if(msg != query)
     992                        g_free(msg);
     993        }
    984994}
    985995
Note: See TracChangeset for help on using the changeset viewer.