Mercurial > pidgin
diff src/account.c @ 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 | 7dcd6f26e4a7 |
children | 4aee5a47937d |
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;