mirror of
https://github.com/irssi/irssi.git
synced 2026-08-23 10:32:31 +02:00
Minor changes as per review
This commit is contained in:
parent
7c540a0139
commit
e80b659767
3 changed files with 7 additions and 8 deletions
|
|
@ -140,10 +140,10 @@ void window_item_set_active(WINDOW_REC *window, WI_ITEM_REC *item)
|
|||
|
||||
WindowType window_item_get_type(WI_ITEM_REC *item)
|
||||
{
|
||||
g_return_val_if_fail(item != NULL, WI_TYPE_OTHER);
|
||||
g_return_val_if_fail(item != NULL, WI_TYPE_OTHER);
|
||||
|
||||
const char *type = module_find_id_str("WINDOW ITEM TYPE", item->type);
|
||||
if (g_ascii_strcasecmp(type, "CHANNEL") == 0)
|
||||
if (g_ascii_strcasecmp(type, "CHANNEL") == 0)
|
||||
return WI_TYPE_CHANNEL;
|
||||
else if (g_ascii_strcasecmp(type, "QUERY") == 0) {
|
||||
if (g_str_has_prefix("=", item->name))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue