Changes in / [a49dcd5:1d2e3c2]
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
bitlbee.c
ra49dcd5 r1d2e3c2 45 45 int i; 46 46 GIOChannel *ch; 47 FILE *fp; 47 48 48 49 log_link( LOGLVL_ERROR, LOGOUTPUT_SYSLOG ); … … 118 119 ipc_master_load_state(); 119 120 121 if( ( fp = fopen( global.conf->pidfile, "w" ) ) ) 122 { 123 fprintf( fp, "%d\n", (int) getpid() ); 124 fclose( fp ); 125 } 126 else 127 { 128 log_message( LOGLVL_WARNING, "Warning: Couldn't write PID to `%s'", global.conf->pidfile ); 129 } 130 120 131 return( 0 ); 121 132 } -
conf.c
ra49dcd5 r1d2e3c2 62 62 conf->configdir = g_strdup( CONFIG ); 63 63 conf->plugindir = g_strdup( PLUGINDIR ); 64 conf->pidfile = g_strdup( "/var/run/bitlbee.pid" ); 64 65 conf->motdfile = g_strdup( ETCDIR "/motd.txt" ); 65 66 conf->ping_interval = 180; … … 78 79 } 79 80 80 while( argc > 0 && ( opt = getopt( argc, argv, "i:p: nvIDFc:d:hR:" ) ) >= 0 )81 while( argc > 0 && ( opt = getopt( argc, argv, "i:p:P:nvIDFc:d:hR:" ) ) >= 0 ) 81 82 /* ^^^^ Just to make sure we skip this step from the REHASH handler. */ 82 83 { … … 93 94 } 94 95 conf->port = i; 96 } 97 else if( opt == 'p' ) 98 { 99 g_free( conf->pidfile ); 100 conf->pidfile = g_strdup( optarg ); 95 101 } 96 102 else if( opt == 'n' ) … … 184 190 else 185 191 conf->runmode = RUNMODE_INETD; 192 } 193 else if( g_strcasecmp( ini->key, "pidfile" ) == 0 ) 194 { 195 g_free( conf->pidfile ); 196 conf->pidfile = g_strdup( ini->value ); 186 197 } 187 198 else if( g_strcasecmp( ini->key, "daemoninterface" ) == 0 ) -
conf.h
ra49dcd5 r1d2e3c2 43 43 char *configdir; 44 44 char *plugindir; 45 char *pidfile; 45 46 char *motdfile; 46 47 char *primary_storage; -
configure
ra49dcd5 r1d2e3c2 14 14 datadir='$prefix/share/bitlbee/' 15 15 config='/var/lib/bitlbee/' 16 pidfile='/var/run/bitlbee.pid' 16 17 plugindir='$prefix/lib/bitlbee' 17 18 … … 46 47 --datadir=... $datadir 47 48 --plugindir=... $plugindir 49 --pidfile=... $pidfile 48 50 --config=... $config 49 51 … … 74 76 config=`eval echo "$config/" | sed 's/\/\{1,\}/\//g'` 75 77 plugindir=`eval echo "$plugindir/" | sed 's/\/\{1,\}/\//g'` 78 pidfile=`eval echo "$pidfile/" | sed 's/\/\{1,\}/\//g'` 76 79 77 80 cat<<EOF>Makefile.settings … … 83 86 DATADIR=$datadir 84 87 PLUGINDIR=$plugindir 88 PIDFILE=$pidfile 85 89 CONFIG=$config 86 90 … … 104 108 #define VARDIR "$datadir" 105 109 #define PLUGINDIR "$plugindir" 110 #define PIDFILE "$pidfile" 106 111 #define ARCH "$arch" 107 112 #define CPU "$cpu" -
irc_commands.c
ra49dcd5 r1d2e3c2 415 415 { 416 416 user_t *u = user_find( irc, irc->nick ); 417 GSList *c = get_connections();418 417 char *away = cmd[1]; 418 account_t *a; 419 419 420 420 if( !u ) return; … … 443 443 } 444 444 445 while( c)446 { 447 if( ((struct gaim_connection *)c->data)->flags & OPT_LOGGED_IN )448 proto_away( c->data, u->away );449 450 c = c->next;445 for( a = irc->accounts; a; a = a->next ) 446 { 447 struct gaim_connection *gc = a->gc; 448 449 if( gc && gc->flags & OPT_LOGGED_IN ) 450 proto_away( gc, u->away ); 451 451 } 452 452 } -
protocols/msn/msn.c
ra49dcd5 r1d2e3c2 84 84 { 85 85 m = l->data; 86 87 serv_got_crap( gc, "Warning: Closing down MSN connection with unsent message to %s, you'll have to resend it.", m->who ); 86 88 g_free( m->who ); 87 89 g_free( m->text ); … … 89 91 } 90 92 g_slist_free( md->msgq ); 91 92 serv_got_crap( gc, "Warning: Closing down MSN connection with unsent message(s), you'll have to resend them." );93 93 } 94 94 -
protocols/msn/sb.c
ra49dcd5 r1d2e3c2 213 213 { 214 214 m = l->data; 215 215 216 g_free( m->who ); 216 217 g_free( m->text ); … … 219 220 g_slist_free( sb->msgq ); 220 221 221 serv_got_crap( gc, "Warning: Closing down MSN switchboard connection with unsent message(s), you'll have to resend them." ); 222 serv_got_crap( gc, "Warning: Closing down MSN switchboard connection with " 223 "unsent message to %s, you'll have to resend it.", 224 m->who ? m->who : "(unknown)" ); 222 225 } 223 226 -
protocols/oscar/service.c
ra49dcd5 r1d2e3c2 736 736 737 737 tlvlen = aim_addtlvtochain32(&tl, 0x0006, data); 738 739 printf("%d\n", tlvlen);740 738 741 739 if (!(fr = aim_tx_new(sess, conn, AIM_FRAMETYPE_FLAP, 0x02, 10 + 8))) -
root_commands.c
ra49dcd5 r1d2e3c2 601 601 { 602 602 set_setstr( irc, cmd[1], cmd[2] ); 603 604 if( ( strcmp( cmd[2], "=" ) ) == 0 && cmd[3] ) 605 irc_usermsg( irc, "Warning: Correct syntax: \002set <variable> <value>\002 (without =)" ); 603 606 } 604 607 if( cmd[1] ) /* else 'forgotten' on purpose.. Must show new value after changing */
Note: See TracChangeset
for help on using the changeset viewer.