Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_send.c

    ra72af0d r4d4a7ed  
    264264void irc_send_who( irc_t *irc, GSList *l, const char *channel )
    265265{
    266         gboolean is_channel = strchr( CTYPES, channel[0] ) != NULL;
     266        gboolean is_channel = strcmp( channel, "**" ) != 0;
    267267       
    268268        while( l )
     
    273273                /* TODO(wilmer): Restore away/channel information here */
    274274                irc_send_num( irc, 352, "%s %s %s %s %s %c :0 %s",
    275                               is_channel ? channel : "*", iu->user, iu->host, irc->root->host,
     275                              channel ? : "*", iu->user, iu->host, irc->root->host,
    276276                              iu->nick, iu->flags & IRC_USER_AWAY ? 'G' : 'H',
    277277                              iu->fullname );
     
    398398                irc_write( ic->irc, ":%s MODE %s %s", from, ic->name, changes );
    399399}
    400 
    401 void irc_send_invite( irc_user_t *iu, irc_channel_t *ic )
    402 {
    403         irc_t *irc = iu->irc;
    404        
    405         irc_write( iu->irc, ":%s!%s@%s INVITE %s :%s",
    406                    iu->nick, iu->user, iu->host, irc->user->nick, ic->name );
    407 }
Note: See TracChangeset for help on using the changeset viewer.