Changeset 7b59872
- Timestamp:
- 2010-04-13T00:04:55Z (15 years ago)
- Branches:
- master
- Children:
- 3a9b123
- Parents:
- 89c11e7
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
irc.h
r89c11e7 r7b59872 201 201 void irc_send_msg( irc_user_t *iu, const char *type, const char *dst, const char *msg, const char *prefix ); 202 202 void irc_send_msg_raw( irc_user_t *iu, const char *type, const char *dst, const char *msg ); 203 void irc_send_msg_f( irc_user_t *iu, const char *type, const char *dst, const char *format, ... ) G_GNUC_PRINTF( 4, 5 ); 203 204 void irc_send_nick( irc_user_t *iu, const char *new ); 204 205 -
irc_send.c
r89c11e7 r7b59872 303 303 } 304 304 305 void irc_send_msg_f( irc_user_t *iu, const char *type, const char *dst, const char *format, ... ) 306 { 307 char text[IRC_MAX_LINE]; 308 va_list params; 309 310 va_start( params, format ); 311 g_vsnprintf( text, IRC_MAX_LINE, format, params ); 312 va_end( params ); 313 314 irc_write( iu->irc, ":%s!%s@%s %s %s :%s", 315 iu->nick, iu->user, iu->host, type, dst, text ); 316 } 317 305 318 void irc_send_nick( irc_user_t *iu, const char *new ) 306 319 { -
irc_user.c
r89c11e7 r7b59872 151 151 if( g_strcasecmp( ctcp[0], "VERSION" ) == 0 ) 152 152 { 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] ? : "" ); 153 160 } 154 161
Note: See TracChangeset
for help on using the changeset viewer.