Changeset c102bbf in code


Ignore:
Timestamp:
Mar 9, 2014, 10:42:06 PM (11 years ago)
Author:
Florian Obser <florian@…>
Branches:
master
Children:
b6c9dd3
Parents:
c4a43f1
Message:

Make pidgin-icb /who and /msg work for real.

pidgin-icb seems to treat "." as the current group, so return the who
output for the group the icb session is connected to.
Turns out the previous commit doesn't fix anything - the tests were
wrong, so revert that.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cmd.c

    rc4a43f1 rc102bbf  
    376376                return icb_who(is, NULL);
    377377
     378        /* pidgin-icb treats '.' as the current group */
     379        if (strlen(arg) == 1 && arg[0] == '.') {
     380                icb_who(is, is->group);
     381                return;
     382        }
     383
    378384        icb_vis(group, arg, ICB_MAXGRPLEN, VIS_SP);
    379385        LIST_FOREACH(ig, &groups, entry) {
  • icb.c

    rc4a43f1 rc102bbf  
    496496                    s->nick, ICB_M_SEP, getmonotime() - s->last,
    497497                    ICB_M_SEP, ICB_M_SEP, s->login, ICB_M_SEP,
    498                     s->client, ICB_M_SEP, s->host, ICB_M_SEP, "(nr)");
     498                    s->client, ICB_M_SEP, s->host, ICB_M_SEP, " ");
    499499                icb_cmdout(is, CMDOUT_WL, buf);
    500500                nusers++;
Note: See TracChangeset for help on using the changeset viewer.