libpurple/protocols/silc/chat.c

changeset 31798
f615f176ce58
parent 30708
535bec1e66fb
child 32218
f27b05250351
child 32438
dc8991868906
child 33798
ab26d8e3da97
equal deleted inserted replaced
31797:e26c45c86ea7 31798:f615f176ce58
892 GList *m = NULL; 892 GList *m = NULL;
893 PurpleMenuAction *act; 893 PurpleMenuAction *act;
894 894
895 if (components) 895 if (components)
896 chname = g_hash_table_lookup(components, "channel"); 896 chname = g_hash_table_lookup(components, "channel");
897 if (chname) 897 if (!chname)
898 channel = silc_client_get_channel(sg->client, sg->conn, 898 return NULL;
899 (char *)chname); 899 channel = silc_client_get_channel(sg->client, sg->conn,
900 (char *)chname);
900 if (channel) { 901 if (channel) {
901 chu = silc_client_on_channel(channel, conn->local_entry); 902 chu = silc_client_on_channel(channel, conn->local_entry);
902 if (chu) 903 if (chu)
903 mode = chu->mode; 904 mode = chu->mode;
904 } 905 }

mercurial