Changeset a72af0d
- Timestamp:
- 2010-08-25T00:18:27Z (14 years ago)
- Branches:
- master
- Children:
- 3cd4016
- Parents:
- bd599b9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
irc_commands.c
rbd599b9 ra72af0d 302 302 char *channel = cmd[1]; 303 303 irc_channel_t *ic; 304 irc_user_t *iu; 304 305 305 306 if( !channel || *channel == '0' || *channel == '*' || !*channel ) … … 307 308 else if( ( ic = irc_channel_by_name( irc, channel ) ) ) 308 309 irc_send_who( irc, ic->users, channel ); 310 else if( ( iu = irc_user_by_name( irc, channel ) ) ) 311 { 312 /* Tiny hack! */ 313 GSList *l = g_slist_append( NULL, iu ); 314 irc_send_who( irc, l, channel ); 315 g_slist_free( l ); 316 } 309 317 else 310 318 irc_send_num( irc, 403, "%s :No such channel", channel ); -
irc_send.c
rbd599b9 ra72af0d 264 264 void irc_send_who( irc_t *irc, GSList *l, const char *channel ) 265 265 { 266 gboolean is_channel = strc mp( channel, "**" ) != 0;266 gboolean is_channel = strchr( CTYPES, channel[0] ) != NULL; 267 267 268 268 while( l ) … … 273 273 /* TODO(wilmer): Restore away/channel information here */ 274 274 irc_send_num( irc, 352, "%s %s %s %s %s %c :0 %s", 275 channel ?: "*", iu->user, iu->host, irc->root->host,275 is_channel ? channel : "*", iu->user, iu->host, irc->root->host, 276 276 iu->nick, iu->flags & IRC_USER_AWAY ? 'G' : 'H', 277 277 iu->fullname );
Note: See TracChangeset
for help on using the changeset viewer.