Hexchat: 十六进制聊天在加入频道之前不会等待被识别

创建于 2015-07-02  ·  3评论  ·  资料来源: hexchat/hexchat

在 freenode 上,我有 +r 和我的自动加入的一部分的 soe 频道。 这些频道在启动时总是无法加入,因为识别需要一段时间。

在尝试加入之前,十六进制聊天可能应该等待被识别。

有人告诉我 xchat 有一个设置,但我没有验证。

我为自己创建了一个小插件:

import hexchat
import threading

__module_name__ = "keepjoin"
__module_version__ = "1.0"
__module_description__ = "keeping you in the channels that you want to stay in"


def keepjoin():
    isInProgrammeur = False
    for chan in hexchat.get_list('channels'):
        attrs = vars(chan)
        #print ', '.join("%s: %s" % item for item in attrs.items())
        #print chan.channel
        if chan.channel == "#programmeur":
            isInProgrammeur = True
    if isInProgrammeur == False:
        hexchat.command("join #programmeur")


myhook = None

def stop_cb(word, word_eol, userdata):
        global myhook
        if myhook is not None:
                hexchat.unhook(myhook)
                myhook = None
                print("Timeout removed!")

def timeout_cb(userdata):
        #print("Annoying message every 5 seconds! Type /STOP to stop it.")
    keepjoin()
        return 1 # Keep the timeout going

myhook = hexchat.hook_timer(5000, timeout_cb)
hexchat.hook_command("STOP", stop_cb)

最有用的评论

首选项 > 高级 > 自动加入延迟

如果您想非常具体地了解您的加入时间,那么您可能只需挂钩 NickServ 说您现在被识别为的 NOTICE 事件,然后发出加入+r频道的命令。

所有3条评论

那么你可能应该使用 SASL 来识别你自己。

这似乎有效。 我不记得为什么我把它换成别的东西了。 我一定是遇到了麻烦。 可能是一个孤立的案例

首选项 > 高级 > 自动加入延迟

如果您想非常具体地了解您的加入时间,那么您可能只需挂钩 NickServ 说您现在被识别为的 NOTICE 事件,然后发出加入+r频道的命令。

此页面是否有帮助?
0 / 5 - 0 等级

相关问题

petterreinholdtsen picture petterreinholdtsen  ·  8评论

AlannahDaw picture AlannahDaw  ·  7评论

philicious picture philicious  ·  10评论

Krahazik picture Krahazik  ·  6评论

xnite picture xnite  ·  7评论