summaryrefslogtreecommitdiff
path: root/src/core/wee-command.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-10-26 17:45:14 +0100
committerSebastien Helleu <flashcode@flashtux.org>2008-10-26 17:45:14 +0100
commitb5730ec025f680fd8c5331d8e813cfbf38330303 (patch)
tree942ec8e8fe596abf7650d5f69832b21a2bc975fd /src/core/wee-command.c
parent62e4f7241a99e5102fbe0ec52dc0ab6c00a4bf1b (diff)
downloadweechat-b5730ec025f680fd8c5331d8e813cfbf38330303.zip
Display readable values for flag of fd hooked with /plugin listfull command
Diffstat (limited to 'src/core/wee-command.c')
-rw-r--r--src/core/wee-command.c10
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") : "");
}
}