diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-10-26 17:45:14 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-10-26 17:45:14 +0100 |
commit | b5730ec025f680fd8c5331d8e813cfbf38330303 (patch) | |
tree | 942ec8e8fe596abf7650d5f69832b21a2bc975fd /src | |
parent | 62e4f7241a99e5102fbe0ec52dc0ab6c00a4bf1b (diff) | |
download | weechat-b5730ec025f680fd8c5331d8e813cfbf38330303.zip |
Display readable values for flag of fd hooked with /plugin listfull command
Diffstat (limited to 'src')
-rw-r--r-- | src/core/wee-command.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c index 03137274a..8041fc0bd 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -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") : ""); } } |