Changeset 5f8ab6a9 for irc_commands.c
- Timestamp:
- 2010-06-03T10:41:03Z (14 years ago)
- Branches:
- master
- Children:
- 814aa52
- Parents:
- 3f81999 (diff), f9928cb (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
irc_commands.c
r3f81999 r5f8ab6a9 27 27 #include "bitlbee.h" 28 28 #include "ipc.h" 29 #include "chat.h" 29 30 30 31 static void irc_cmd_pass( irc_t *irc, char **cmd ) … … 447 448 user_t *u = user_find( irc, irc->nick ); 448 449 char *away = cmd[1]; 449 account_t *a;450 450 451 451 if( !u ) return; … … 474 474 } 475 475 476 for( a = irc->accounts; a; a = a->next ) 477 { 478 struct im_connection *ic = a->ic; 479 480 if( ic && ic->flags & OPT_LOGGED_IN ) 481 imc_set_away( ic, u->away ); 482 } 476 set_setstr( &irc->set, "away", u->away ); 483 477 } 484 478 … … 503 497 else if( u->away ) 504 498 irc_reply( irc, 301, "%s :%s", u->nick, u->away ); 499 if( u->status_msg ) 500 irc_reply( irc, 333, "%s :Status: %s", u->nick, u->status_msg ); 505 501 506 502 irc_reply( irc, 318, "%s :End of /WHOIS list", nick );
Note: See TracChangeset
for help on using the changeset viewer.