Changeset 7b59872 for irc_user.c


Ignore:
Timestamp:
2010-04-13T00:04:55Z (10 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
3a9b123
Parents:
89c11e7
Message:

Support for simple VERSION/PING CTCPs to root.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_user.c

    r89c11e7 r7b59872  
    151151        if( g_strcasecmp( ctcp[0], "VERSION" ) == 0 )
    152152        {
     153                irc_send_msg_f( iu, "NOTICE", iu->irc->user->nick, "\001%s %s\001",
     154                                ctcp[0], "BitlBee " BITLBEE_VERSION " " ARCH "/" CPU );
     155        }
     156        else if( g_strcasecmp( ctcp[0], "PING" ) == 0 )
     157        {
     158                irc_send_msg_f( iu, "NOTICE", iu->irc->user->nick, "\001%s %s\001",
     159                                ctcp[0], ctcp[1] ? : "" );
    153160        }
    154161       
Note: See TracChangeset for help on using the changeset viewer.