Changeset b7bc432 in code for cmd.c


Ignore:
Timestamp:
Mar 4, 2014, 11:17:15 PM (11 years ago)
Author:
Stuart Henderson <stu@…>
Branches:
master
Children:
efa8586
Parents:
626f420
Message:

permit whitespace in topic, otherwise sanitize to _

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cmd.c

    r626f420 rb7bc432  
    8787        }
    8888
    89         icb_vis(whom, arg, ICB_MAXNICKLEN);
     89        icb_vis(whom, arg, ICB_MAXNICKLEN, VIS_SP);
    9090
    9191        LIST_FOREACH(s, &ig->sess, entry) {
     
    129129        }
    130130
    131         icb_vis(whom, arg, ICB_MAXNICKLEN);
     131        icb_vis(whom, arg, ICB_MAXNICKLEN, VIS_SP);
    132132
    133133        /* who would be a target then? */
     
    160160        }
    161161
    162         icb_vis(group, arg, ICB_MAXGRPLEN);
     162        icb_vis(group, arg, ICB_MAXGRPLEN, VIS_SP);
    163163
    164164        LIST_FOREACH(ig, &groups, entry) {
     
    237237        if (strlen(arg) > ICB_MAXNICKLEN)
    238238                arg[ICB_MAXNICKLEN - 1] = '\0';
    239         icb_vis(nick, arg, ICB_MAXNICKLEN);
     239        icb_vis(nick, arg, ICB_MAXNICKLEN, VIS_SP);
    240240        LIST_FOREACH(s, &ig->sess, entry) {
    241241                if (strcmp(s->nick, nick) == 0) {
     
    312312                        return;
    313313                }
    314                 icb_vis(whom, arg, ICB_MAXNICKLEN);
     314                icb_vis(whom, arg, ICB_MAXNICKLEN, VIS_SP);
    315315                LIST_FOREACH(s, &ig->sess, entry) {
    316316                        if (strcmp(s->nick, whom) == 0)
     
    344344                        return;
    345345                }
    346                 icb_vis(topic, arg, ICB_MAXTOPICLEN);
     346                icb_vis(topic, arg, ICB_MAXTOPICLEN, 0);
    347347                strlcpy(ig->topic, topic, sizeof ig->topic);
    348348                icb_status_group(ig, NULL, STATUS_TOPIC,
     
    360360                return icb_who(is, NULL);
    361361
    362         icb_vis(group, arg, ICB_MAXGRPLEN);
     362        icb_vis(group, arg, ICB_MAXGRPLEN, VIS_SP);
    363363        LIST_FOREACH(ig, &groups, entry) {
    364364                if (strcmp(ig->name, group) == 0)
Note: See TracChangeset for help on using the changeset viewer.