| 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 } |