bitlbee / bitlbee-facebook

Facebook protocol plugin for BitlBee
GNU General Public License v2.0
279 stars 49 forks source link

How to prevent joining a closed group chat on connection? #157

Closed rr- closed 6 years ago

rr- commented 6 years ago

This is silly at best:

2017-10-24 13:30:09 --> rr- (rr-@localhost.localdomain) has joined #bara
2017-10-24 13:30:11 --   root has changed topic for #bara to "BitlBee groupchat: "1333384416682792". Please keep in mind that root-commands won't work here. Have fun!"
2017-10-24 13:30:12 --   root has changed topic for #bara from "BitlBee groupchat: "1333384416682792". Please keep in mind that root-commands won't work here. Have fun!" to "綺麗な薔薇"
2017-10-24 13:30:12 @root     You have been removed from this chat
2017-10-24 13:30:12 <-- root has kicked rr- (Chatroom closed by server)
2017-10-29 13:32:04 --> rr- (rr-@localhost.localdomain) has joined #bara
2017-10-29 13:32:05 --   root has changed topic for #bara from "BitlBee groupchat: "1333384416682792". Please keep in mind that root-commands won't work here. Have fun!" to "綺麗な薔薇"
2017-10-29 13:32:05 @root     You have been removed from this chat
2017-10-29 13:32:05 <-- root has kicked rr- (Chatroom closed by server)
2017-10-29 15:32:26 --> rr- (rr-@localhost.localdomain) has joined #bara
2017-10-29 15:32:27 --   root has changed topic for #bara from "BitlBee groupchat: "1333384416682792". Please keep in mind that root-commands won't work here. Have fun!" to "綺麗な薔薇"
2017-10-29 15:32:27 @root     You have been removed from this chat
2017-10-29 15:32:27 <-- root has kicked rr- (Chatroom closed by server)
2017-10-29 15:52:42 --> rr- (rr-@localhost.localdomain) has joined #bara
2017-10-29 15:52:43 --   root has changed topic for #bara from "BitlBee groupchat: "1333384416682792". Please keep in mind that root-commands won't work here. Have fun!" to "綺麗な薔薇"
2017-10-29 15:52:43 @root     You have been removed from this chat
2017-10-29 15:52:43 <-- root has kicked rr- (Chatroom closed by server)
2017-10-29 17:57:01 --> rr- (rr-@localhost.localdomain) has joined #bara
2017-10-29 17:57:02 --   root has changed topic for #bara from "BitlBee groupchat: "1333384416682792". Please keep in mind that root-commands won't work here. Have fun!" to "綺麗な薔薇"
2017-10-29 17:57:02 @root     You have been removed from this chat
2017-10-29 17:57:02 <-- root has kicked rr- (Chatroom closed by server)
2017-10-29 17:58:04 --> rr- (rr-@localhost.localdomain) has joined #bara
2017-10-29 17:58:06 --   root has changed topic for #bara to "BitlBee groupchat: "1333384416682792". Please keep in mind that root-commands won't work here. Have fun!"
2017-10-29 17:58:06 --   root has changed topic for #bara from "BitlBee groupchat: "1333384416682792". Please keep in mind that root-commands won't work here. Have fun!" to "綺麗な薔薇"
2017-10-29 17:58:06 @root     You have been removed from this chat
2017-10-29 17:58:06 <-- root has kicked rr- (Chatroom closed by server)

It happens every time i connect to FB.

rr- commented 6 years ago

Solved the issue by removing following snippet from /var/lib/bitlbee/rr-.xml:

    <channel name="#bara" type="chat">
        <setting name="account">facebook</setting>
        <setting name="auto_join">true</setting>
        <setting name="chat_type">room</setting>
        <setting name="room">1333384416682792</setting>
    </channel>
dequis commented 6 years ago

Huh, i thought had replied to this one, sorry.

For the record you could have done this

channel #bara set auto_join false

or even

channel #bara del