Mercurial > pidgin
changeset 23287:173c612752ea
Correctly detect system logs.
| author | Sadrul Habib Chowdhury <imadil@gmail.com> |
|---|---|
| date | Thu, 05 Jun 2008 10:16:23 +0000 |
| parents | 53b7afa0018b |
| children | 5f9793c8510a |
| files | libpurple/log.c |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/log.c Thu Jun 05 00:44:58 2008 +0000 +++ b/libpurple/log.c Thu Jun 05 10:16:23 2008 +0000 @@ -1067,7 +1067,7 @@ set->normalized_name = g_strdup(purple_normalize(account, name)); /* Chat for .chat or .system at the end of the name to determine the type. */ - if (len > 7) { + if (len >= 7) { gchar *tmp = &name[len - 7]; if (!strcmp(tmp, ".system")) { set->type = PURPLE_LOG_SYSTEM;
