Skip to content

Instantly share code, notes, and snippets.

@Fingercomp
Last active December 29, 2016 15:03
Show Gist options
  • Save Fingercomp/8e45f0d512c99f08fabbb87625b72a40 to your computer and use it in GitHub Desktop.
Save Fingercomp/8e45f0d512c99f08fabbb87625b72a40 to your computer and use it in GitHub Desktop.
local function topic_event(args)
if args[3] == "#cc.ru-server1" then
return hexchat.EAT_HEXCHAT
end
end
hexchat.hook_print("Topic Change", topic_event)
hexchat.register("filtertopic", "1.0.0", "Ignores topic changes in #cc.ru-server1")
import hexchat
__module_name__ = "filtertopic"
__module_version__ = "1.0.0"
__module_description__ = "Ignores topic changes in #cc.ru-server1"
def topic_event(word, word_eol, userdata):
if word_eol[2] == "#cc.ru-server1":
return hexchat.EAT_HEXCHAT
hexchat.hook_print("Topic Change", topic_event)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment