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