changeset 8619:d4f6b9aa4cc8

[gaim-migrate @ 9370] (01:38:34) khc: LSchiere: http://kahing.ath.cx/software/gaim/syslog-jabber.diff (01:38:39) khc: LSchiere: Strips the / committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Thu, 08 Apr 2004 05:26:35 +0000
parents 70aad91d9cb5
children e67f0f3aebb8
files src/account.c src/log.c src/server.c
diffstat 3 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/account.c	Thu Apr 08 04:43:53 2004 +0000
+++ b/src/account.c	Thu Apr 08 05:26:35 2004 +0000
@@ -923,8 +923,16 @@
 	g_return_val_if_fail(account != NULL, NULL);
 
 	if(!account->system_log){
-		account->system_log	 = gaim_log_new(GAIM_LOG_SYSTEM, account->username,
+		char *name = g_strdup(gaim_account_get_username(account));
+		char *c = strchr(name, '/');
+
+		if(c) {
+			c[0] = '\0';
+		}
+
+		account->system_log	 = gaim_log_new(GAIM_LOG_SYSTEM, name,
 											account, account->gc->login_time);
+		g_free(name);
 	}
 
 	return account->system_log;
--- a/src/log.c	Thu Apr 08 04:43:53 2004 +0000
+++ b/src/log.c	Thu Apr 08 05:26:35 2004 +0000
@@ -299,7 +299,6 @@
 	prpl = GAIM_PLUGIN_PROTOCOL_INFO
 		(gaim_find_prpl(gaim_account_get_protocol_id(account)))->list_icon(account, NULL);
 	path = g_build_filename(gaim_user_dir(), "logs", prpl, me, gaim_normalize(account, screenname), NULL);
-
 	g_free(me);
 
 	if (!(dir = g_dir_open(path, 0, NULL))) {
--- a/src/server.c	Thu Apr 08 04:43:53 2004 +0000
+++ b/src/server.c	Thu Apr 08 05:26:35 2004 +0000
@@ -881,6 +881,7 @@
 		return;
 	}
 	name = angel;
+
 	message = buffy;
 
 	/*