Changeset 9893da3
- Timestamp:
- 2010-05-03T23:55:33Z (14 years ago)
- Branches:
- master
- Children:
- eb50495
- Parents:
- 0d4a068
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
irc.h
r0d4a068 r9893da3 197 197 int irc_channel_set_topic( irc_channel_t *ic, const char *topic, const irc_user_t *who ); 198 198 void irc_channel_user_set_mode( irc_channel_t *ic, irc_user_t *iu, irc_channel_user_flags_t flags ); 199 void irc_channel_printf( irc_channel_t *ic, char *format, ... ); 199 200 gboolean irc_channel_name_ok( const char *name ); 200 201 -
irc_channel.c
r0d4a068 r9893da3 173 173 174 174 icu->flags = flags; 175 } 176 177 void irc_channel_printf( irc_channel_t *ic, char *format, ... ) 178 { 179 va_list params; 180 char *text; 181 182 va_start( params, format ); 183 text = g_strdup_vprintf( format, params ); 184 va_end( params ); 185 186 irc_send_msg( ic->irc->root, "PRIVMSG", ic->name, text, NULL ); 187 g_free( text ); 175 188 } 176 189 … … 213 226 else 214 227 { 215 irc_send_msg_f( irc->root, "PRIVMSG", ic->name, 216 "User does not exist: %s", to ); 228 irc_channel_printf( ic, "User does not exist: %s", to ); 217 229 } 218 230 }
Note: See TracChangeset
for help on using the changeset viewer.