changeset 17015:47a9ba4f4373

Fix debug filtering.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 11 May 2007 01:46:07 +0000
parents 3130a2cfe4e0
children 220b1e21d336
files finch/gntdebug.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/finch/gntdebug.c	Thu May 10 21:47:47 2007 +0000
+++ b/finch/gntdebug.c	Fri May 11 01:46:07 2007 +0000
@@ -54,9 +54,9 @@
 	const char *str = gnt_entry_get_text(GNT_ENTRY(debug.search));
 	if (!str || !*str)
 		return TRUE;
-	if (g_ascii_strcasecmp(str, category) == 0)
+	if (g_strrstr(category, str) != NULL)
 		return TRUE;
-	if (g_ascii_strcasecmp(str, args) == 0)
+	if (g_strrstr(args, str) != NULL)
 		return TRUE;
 	return FALSE;
 }