Permalink
Browse files

add logic to remove own nick from being sent

  • Loading branch information...
1 parent 44eaf2c commit 28b9ff0161cd60227abec1ed0ec3bd528f0c1162 @xmission xmission committed Nov 26, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 email-0mq.py
View
@@ -55,6 +55,8 @@ def sendsms(index, channel, nick, message):
try:
nick = base64.b64decode(y['tags'][3])
nick = re.sub('^nick_','',nick)
+ if 'prefix_nick' in nick: # don't send your own messages
+ continue
except:
continue

0 comments on commit 28b9ff0

Please sign in to comment.