put in new remote
when you are away and get p2p msg's it will put them in new window like a dairy for when are back and u dont miss any. As well as only havin one window for all instead of hundreds of p2p windows open to check , might be good for admins , hope its useful for some ppl :)
on *:open:?:*:{
if ($away) {
window @P2P_messages
aline @P2P_messages $time(mm/dd/yy h:nn tt) $+($chr(60),$nick,$chr(62)) P2P'ed me saying $1-
.close -m $nick
if (!$($+(%,p2pawaywin,$nick),2)) {
.msg $nick Im away now but leave a message and il get back to you when i get back
set -u600 $+(%,p2pawaywin,$nick) $nick
.close -m $nick
}
}
}
IllogicTC means that * in place of ? will also catch channel notices, those sent using /notice #chan, rather than just private notices sent using /notice yournick.
if you do plan to lump channel notices together with private ones, it would be wise to include some indication of that within the line being added to the window otherwise the user, when he returns, might be given the false impression that a notice sent to the channel was sent to them personally. that, and avoid responding to those notices.
Ah true, even if notices are shown in the main channel they are private and so should cue on the *:?:, yes?
And Failed ReHab, it would be a good idea, then again PMs could equally be flooded. However, there are many options available for personal flood protection already and interfacing a PM grabber (and a notice grabber) with this protection would give you the ability to keep from being flooded without having to personally code it into your grabber snippet(s) :P
@illogic here is one for notices now this is untested but it should work ok this is tested and does work
on ^*:NOTICE:*:?: {
if ($away) {
window @notice_messages
aline @notice_messages $time(mm/dd/yy h:nn tt)
aline @notice_messages $+($chr(60),$nick,$chr(62)) notice'ed me
aline @notice_messages saying $1-
haltdef
if (!$($+(%,p2pawaywin,$nick),2)) {
.notice $nick Im away now but leave a message and il get back to you when i get back
set -u600 $+(%,p2pawaywin,$nick) $nick
haltdef
}
}
}