sounds.py: don't play sounds on messages from self

This commit is contained in:
James Booth
2016-11-06 23:15:46 +00:00
parent 38cc929f86
commit 3afb6bb157
3 changed files with 20 additions and 0 deletions

View File

@@ -128,6 +128,10 @@ def _get(subject):
if room:
prof.win_focus(plugin_win)
prof.win_show(plugin_win, "called -> prof_get_current_muc: " + room)
nick = prof.get_room_nick(room)
if nick:
prof.win_focus(plugin_win)
prof.win_show(plugin_win, "called -> prof_get_room_nick('" + room + "'): " + nick)
else:
prof.win_focus(plugin_win)
prof.win_show(plugin_win, "called -> prof_get_current_muc: <none>")