Changeset bbc69f7 for irc_commands.c


Ignore:
Timestamp:
2012-12-23T23:36:56Z (7 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
3f661849
Parents:
c1bc24a
Message:

Support /NOTICE for contacts, might be used by bots for example. Pre-ui-fix
these used to get a flag so OSCAR sends them as away messages IIRC, but meh.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_commands.c

    rc1bc24a rbbc69f7  
    382382static void irc_cmd_notice( irc_t *irc, char **cmd )
    383383{
     384        irc_user_t *iu;
     385       
    384386        if( !cmd[2] )
    385387        {
     
    392394        if( nick_cmp( cmd[1], irc->user->nick ) == 0 )
    393395                irc_send_msg( irc->user, "NOTICE", irc->user->nick, cmd[2], NULL );
     396        else if( ( iu = irc_user_by_name( irc, cmd[1] ) ) )
     397                iu->f->privmsg( iu, cmd[2] );
    394398}
    395399
Note: See TracChangeset for help on using the changeset viewer.