Skip to content

Commit

Permalink
Resolution Issue #2
Browse files Browse the repository at this point in the history
Ajouter une notification sur la ligne quand on est mentioné
  • Loading branch information
sl4shme committed Oct 21, 2013
1 parent 63248e5 commit 146099d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions minion.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ def handlerRemPeer(self, mess):
pass

def handlerGetMess(self, mess):
expr = re.compile(r'.*%s.*' % self.minion.nickname)
match = expr.search(mess)
if match:
mess = "* "+mess
if self.minion.screen.doNotif == True:
self.minion.screen.notif.flash = True
self.minion.screen.printMessage(str(mess))
Expand Down

0 comments on commit 146099d

Please sign in to comment.