Changeset fb62f81f
- Timestamp:
- 2006-06-03T19:51:16Z (18 years ago)
- Branches:
- master
- Children:
- 5a5c926, 9779c18
- Parents:
- c38e965
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
irc.c
rc38e965 rfb62f81f 899 899 void irc_kill( irc_t *irc, user_t *u ) 900 900 { 901 char *nick; 902 903 irc_write( irc, ":%s!%s@%s QUIT :%s", u->nick, u->user, u->host, "Leaving..." ); 901 char *nick, *s; 902 char reason[64]; 903 904 if( u->gc && u->gc->flags & OPT_LOGGING_OUT ) 905 { 906 if( u->gc->user->proto_opt[0][0] ) 907 g_snprintf( reason, sizeof( reason ), "%s %s", irc->myhost, 908 u->gc->user->proto_opt[0] ); 909 else if( ( s = strchr( u->gc->username, '@' ) ) ) 910 g_snprintf( reason, sizeof( reason ), "%s %s", irc->myhost, 911 s + 1 ); 912 else 913 g_snprintf( reason, sizeof( reason ), "%s %s.%s", irc->myhost, 914 u->gc->prpl->name, irc->myhost ); 915 916 /* proto_opt might contain garbage after the : */ 917 if( ( s = strchr( reason, ':' ) ) ) 918 *s = 0; 919 } 920 else 921 { 922 strcpy( reason, "Leaving..." ); 923 } 924 925 irc_write( irc, ":%s!%s@%s QUIT :%s", u->nick, u->user, u->host, reason ); 904 926 905 927 nick = g_strdup( u->nick ); -
protocols/nogaim.c
rc38e965 rfb62f81f 295 295 296 296 serv_got_crap( gc, "Signing off.." ); 297 297 gc->flags |= OPT_LOGGING_OUT; 298 298 299 gaim_input_remove( gc->keepalive ); 299 300 gc->keepalive = 0; -
protocols/nogaim.h
rc38e965 rfb62f81f 54 54 #define WEBSITE "http://www.bitlbee.org/" 55 55 #define IM_FLAG_AWAY 0x0020 56 #define OPT_CONN_HTML 0x0000000157 #define OPT_LOGGED_IN 0x0001000058 56 #define GAIM_AWAY_CUSTOM "Custom" 57 58 #define OPT_CONN_HTML 0x00000001 59 #define OPT_LOGGED_IN 0x00010000 60 #define OPT_LOGGING_OUT 0x00020000 59 61 60 62 /* ok. now the fun begins. first we create a connection structure */
Note: See TracChangeset
for help on using the changeset viewer.