Commit a4acf808 authored by Tails developers's avatar Tails developers
Browse files

Disable OTR commands for group chat.

parent 77edaa72
......@@ -131,11 +131,15 @@ class OtrBot(jabberbot.JabberBot):
def start_otr(self, mess, args):
"""Make me *initiate* (but not refresh) an OTR session"""
if mess.getType() == "groupchat":
return "?OTRv2?"
def end_otr(self, mess, args):
"""Make me gracefully end the OTR session if there is one"""
if mess.getType() == "groupchat":
user = str(mess.getFrom().getStripped())
self.__otr_ustate, self.__otr_callbacks({"message": mess}),
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment