mtell command aded

This commit is contained in:
Baerbel Box
2024-07-11 07:46:51 +02:00
parent bb948be648
commit af96c01acd
+1 -1
View File
@@ -17,6 +17,6 @@ class TellObserver(PrivMsgObserverPrototype):
if data['message'].find('.tell') != -1 and self._is_idented_mod(data, connection): if data['message'].find('.tell') != -1 and self._is_idented_mod(data, connection):
connection.send_channel(data['messageCaseSensitive'][6:]) connection.send_channel(data['messageCaseSensitive'][6:])
if data['message'].find('.mtell') != -1 and self._is_idented_mod(data, connection): if data['message'].find('.mtell') != -1 and self._is_idented_mod(data, connection):
connection.send_channel('\001ACTION'+data['messageCaseSensitive'][7:]+'\001') connection.send_channel('\001ACTION '+data['messageCaseSensitive'][7:]+'\001')
def _is_idented_mod(self, data: dict, connection: Connection): def _is_idented_mod(self, data: dict, connection: Connection):
return data['nick'] in self._config.mods and connection.is_idented(data['nick']) return data['nick'] in self._config.mods and connection.is_idented(data['nick'])