1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-07 18:23:13 +02:00

Display readable values for flag of fd hooked with /plugin listfull command

This commit is contained in:
Sebastien Helleu
2008-10-26 17:45:14 +01:00
parent 62e4f7241a
commit b5730ec025
8 changed files with 92 additions and 18 deletions
+8 -2
View File
@@ -1916,9 +1916,15 @@ command_plugin_list (const char *name, int full)
_(" fd hooked:"));
hook_found = 1;
gui_chat_printf (NULL,
_(" %d (flags: %d)"),
_(" %d (flags: 0x%x:%s%s%s)"),
HOOK_FD(ptr_hook, fd),
HOOK_FD(ptr_hook, flags));
HOOK_FD(ptr_hook, flags),
(HOOK_FD(ptr_hook, flags) & HOOK_FD_FLAG_READ) ?
_(" read") : "",
(HOOK_FD(ptr_hook, flags) & HOOK_FD_FLAG_WRITE) ?
_(" write") : "",
(HOOK_FD(ptr_hook, flags) & HOOK_FD_FLAG_EXCEPTION) ?
_(" exception") : "");
}
}