From b7013f41997500ed888fb3b40f3c11a5502079cd Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 15 Apr 2011 12:21:52 +0200 Subject: empathy-tp-chat: ensure that we get a TpTextChannel --- libempathy/empathy-tp-chat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libempathy/empathy-tp-chat.c') diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c index da3ac663a..6b6dfebe5 100644 --- a/libempathy/empathy-tp-chat.c +++ b/libempathy/empathy-tp-chat.c @@ -1618,7 +1618,7 @@ empathy_tp_chat_new (TpAccount *account, TpChannel *channel) { g_return_val_if_fail (TP_IS_ACCOUNT (account), NULL); - g_return_val_if_fail (TP_IS_CHANNEL (channel), NULL); + g_return_val_if_fail (TP_IS_TEXT_CHANNEL (channel), NULL); return g_object_new (EMPATHY_TYPE_TP_CHAT, "account", account, -- cgit v1.2.3