summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--markunread.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/markunread.py b/markunread.py
new file mode 100644
index 0000000..a5df3a4
--- /dev/null
+++ b/markunread.py
@@ -0,0 +1,11 @@
+import hexchat
+
+__module_name__ = "Mark Unread"
+__module_author__ = "Luke Bratch"
+__module_version__ = "0.0.1"
+__module_description__ = "Add a Mark Unread command to the tab context menu"
+
+hexchat.command('MENU -p1 ADD "$TAB/Mark Unread" "py exec import xchat; cnc = xchat.find_context(channel=\'%s\'); cnc.command(\'gui color 2\')"')
+# Remove with: /MENU DEL "$TAB/Mark Unread"
+
+hexchat.prnt(__module_name__ + " version " + __module_version__ + " loaded")