Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当用户被禁止并被迫离开聊天室时,我们对 muc_filter_presence 的钩子不会收到呼叫。这是预期的吗?如果是这样,我们可以使用其他钩子来“禁止用户”回调吗?我们正在使用 ejabberd 18.04。
muc_filter_presence 旨在过滤发送到房间的存在节。在踢的情况下,发送它的是房间,所以不调用这个事件是有道理的。
当踢(或禁止)房间居住者时,我看到这个事件被称为:
ejabberd_hooks:run( leave_room, <<"localhost">>, [<<"localhost">>, <<"room1">>,<<"conference.localhost">>, {<<"baduser">>,<<"localhost">>,<<"tka1">>}]).