aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2012-05-02 08:58:22 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2012-05-02 08:58:22 +0100
commit18e1f3b157062e2daec877157e4868593e984656 (patch)
treed5d564cc51df1de09a2957b7564aca94c61725b3
parentd527913c458a5e4713af18e019ba356dd369cbcc (diff)
Set PACKAGE to BitlBee-LIBPURPLE for the libpurple variant, because in many
ways it's not BitlBee and I'm tired of getting libpurple-related bug reports.
-rw-r--r--bitlbee.h2
-rwxr-xr-xconfigure3
-rw-r--r--ipc.c2
-rw-r--r--irc_commands.c4
-rw-r--r--irc_send.c5
-rw-r--r--irc_user.c2
-rw-r--r--unix.c6
7 files changed, 14 insertions, 10 deletions
diff --git a/bitlbee.h b/bitlbee.h
index 64266850..6c3a437f 100644
--- a/bitlbee.h
+++ b/bitlbee.h
@@ -122,7 +122,7 @@ extern "C" {
#define DEFAULT_AWAY "Away from computer"
#define CONTROL_TOPIC "Welcome to the control channel. Type \2help\2 for help information."
-#define IRCD_INFO "BitlBee <http://www.bitlbee.org/>"
+#define IRCD_INFO PACKAGE " <http://www.bitlbee.org/>"
#define MAX_NICK_LENGTH 24
diff --git a/configure b/configure
index 5cfa903f..91e76124 100755
--- a/configure
+++ b/configure
@@ -640,6 +640,9 @@ EOF
jabber=0
oscar=0
yahoo=0
+
+ echo '#undef PACKAGE' >> config.h
+ echo '#define PACKAGE "BitlBee-LIBPURPLE"' >> config.h
if [ "$events" = "libevent" ]; then
echo 'Warning: Some libpurple modules (including msn-pecan) do their event handling'
diff --git a/ipc.c b/ipc.c
index 26102d46..fa23d987 100644
--- a/ipc.c
+++ b/ipc.c
@@ -989,7 +989,7 @@ int ipc_master_load_state( char *statefile )
}
ipc_to_children_str( "HELLO\r\n" );
- ipc_to_children_str( "OPERMSG :New BitlBee master process started (version " BITLBEE_VERSION ")\r\n" );
+ ipc_to_children_str( "OPERMSG :New %s master process started (version %s)\r\n", PACKAGE, BITLBEE_VERSION );
fclose( fp );
return 1;
diff --git a/irc_commands.c b/irc_commands.c
index 0dbf8ee6..9a46f882 100644
--- a/irc_commands.c
+++ b/irc_commands.c
@@ -681,8 +681,8 @@ static void irc_cmd_list( irc_t *irc, char **cmd )
static void irc_cmd_version( irc_t *irc, char **cmd )
{
- irc_send_num( irc, 351, "bitlbee-%s. %s :%s/%s ",
- BITLBEE_VERSION, irc->root->host, ARCH, CPU );
+ irc_send_num( irc, 351, "%s-%s. %s :%s/%s ",
+ PACKAGE, BITLBEE_VERSION, irc->root->host, ARCH, CPU );
}
static void irc_cmd_completions( irc_t *irc, char **cmd )
diff --git a/irc_send.c b/irc_send.c
index 7739f798..ba9678bb 100644
--- a/irc_send.c
+++ b/irc_send.c
@@ -39,8 +39,9 @@ void irc_send_num( irc_t *irc, int code, char *format, ... )
void irc_send_login( irc_t *irc )
{
- irc_send_num( irc, 1, ":Welcome to the BitlBee gateway, %s", irc->user->nick );
- irc_send_num( irc, 2, ":Host %s is running BitlBee " BITLBEE_VERSION " " ARCH "/" CPU ".", irc->root->host );
+ irc_send_num( irc, 1, ":Welcome to the %s gateway, %s", PACKAGE, irc->user->nick );
+ irc_send_num( irc, 2, ":Host %s is running %s %s %s/%s.", irc->root->host,
+ PACKAGE, BITLBEE_VERSION, ARCH, CPU );
irc_send_num( irc, 3, ":%s", IRCD_INFO );
irc_send_num( irc, 4, "%s %s %s %s", irc->root->host, BITLBEE_VERSION, UMODES UMODES_PRIV, CMODES );
irc_send_num( irc, 5, "PREFIX=(ohv)@%%+ CHANTYPES=%s CHANMODES=,,,%s NICKLEN=%d CHANNELLEN=%d "
diff --git a/irc_user.c b/irc_user.c
index db6fe531..affea60e 100644
--- a/irc_user.c
+++ b/irc_user.c
@@ -232,7 +232,7 @@ static gboolean root_ctcp( irc_user_t *iu, char * const *ctcp )
if( g_strcasecmp( ctcp[0], "VERSION" ) == 0 )
{
irc_send_msg_f( iu, "NOTICE", iu->irc->user->nick, "\001%s %s\001",
- ctcp[0], "BitlBee " BITLBEE_VERSION " " ARCH "/" CPU );
+ ctcp[0], PACKAGE " " BITLBEE_VERSION " " ARCH "/" CPU );
}
else if( g_strcasecmp( ctcp[0], "PING" ) == 0 )
{
diff --git a/unix.c b/unix.c
index 2ad2edfc..b2b235ed 100644
--- a/unix.c
+++ b/unix.c
@@ -112,7 +112,7 @@ int main( int argc, char *argv[] )
log_link( LOGLVL_WARNING, LOGOUTPUT_IRC );
i = bitlbee_inetd_init();
- log_message( LOGLVL_INFO, "BitlBee %s starting in inetd mode.", BITLBEE_VERSION );
+ log_message( LOGLVL_INFO, "%s %s starting in inetd mode.", PACKAGE, BITLBEE_VERSION );
}
else if( global.conf->runmode == RUNMODE_DAEMON )
@@ -121,7 +121,7 @@ int main( int argc, char *argv[] )
log_link( LOGLVL_WARNING, LOGOUTPUT_CONSOLE );
i = bitlbee_daemon_init();
- log_message( LOGLVL_INFO, "BitlBee %s starting in daemon mode.", BITLBEE_VERSION );
+ log_message( LOGLVL_INFO, "%s %s starting in daemon mode.", PACKAGE, BITLBEE_VERSION );
}
else if( global.conf->runmode == RUNMODE_FORKDAEMON )
{
@@ -138,7 +138,7 @@ int main( int argc, char *argv[] )
}
i = bitlbee_daemon_init();
- log_message( LOGLVL_INFO, "BitlBee %s starting in forking daemon mode.", BITLBEE_VERSION );
+ log_message( LOGLVL_INFO, "%s %s starting in forking daemon mode.", PACKAGE, BITLBEE_VERSION );
}
if( i != 0 )
return( i );