Changeset 18da20b for irc_send.c


Ignore:
Timestamp:
2010-06-06T00:33:33Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
1f0224c
Parents:
c1a8a16
Message:

Added /part msgs, and the ability to silently remove users from channels
(when sending a /quit instead, for example).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_send.c

    rc1a8a16 r18da20b  
    150150void irc_send_part( irc_channel_t *ic, irc_user_t *iu, const char *reason )
    151151{
    152         irc_write( ic->irc, ":%s!%s@%s PART %s :%s", iu->nick, iu->user, iu->host, ic->name, reason );
     152        irc_write( ic->irc, ":%s!%s@%s PART %s :%s", iu->nick, iu->user, iu->host, ic->name, reason ? : "" );
    153153}
    154154
Note: See TracChangeset for help on using the changeset viewer.