irssi/scripts.irssi.org — pull request #22 by WhitePatches (2014-07-09 23:40:19+00:00)
Title: noticelogic plugic

Rewrite of noticemove by Timo Sirainen. Now it prefers the active window.
Should only affect incoming notices, not /notice sends.

Notice message destination in preference order:
* active window if the sender is involved (channel or query)
* query with the sender if open
* channel you are joined in that has the sender in (first found is used)
* irssi default