summaryrefslogtreecommitdiff
path: root/miniirc_idc.py
diff options
context:
space:
mode:
Diffstat (limited to 'miniirc_idc.py')
-rw-r--r--miniirc_idc.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/miniirc_idc.py b/miniirc_idc.py
index 9c041d0..88f7549 100644
--- a/miniirc_idc.py
+++ b/miniirc_idc.py
@@ -96,6 +96,11 @@ class IDC(miniirc.IRC):
else:
hostmask = ('', '', '')
+ # If echo-message wasn't requested then don't send self messages
+ if (command == 'PRIVMSG' and hostmask[0] == self.current_nick and
+ 'echo-message' not in self.active_caps):
+ return None
+
if 'TS' in idc_args:
dt = datetime.datetime.utcfromtimestamp(float(idc_args['TS']))
tags['time'] = dt.isoformat() + 'Z'
@@ -159,7 +164,7 @@ class IDC(miniirc.IRC):
self.idc_send('LOGIN', username=user, password=password,
label=label)
self.active_caps = self.ircv3_caps & {
- 'account-tag', 'labeled-response', # 'message-tags',
+ 'account-tag', 'echo-message', 'labeled-response',
}
# Override the message parser to change the default parser.