P2P Logger

By Failed ReHab on Dec 11, 2010

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
     }
   }
 }

Comments

Sign in to comment.
xdesoto   -  Dec 13, 2010

Jenn... Good script Glad to see you're scripting now :)
when I go away my script auto put's on my p2p block..
and all my p2p's and notices go to a @window

 Respond  
IllogicTC   -  Dec 12, 2010

I second napa's motion. I can remember when I first got back into mSL.

It started with simple on :TEXT again, hahahah. And look at me now! Writing slightly more complex on :TEXT lmao.

 Respond  
napa182   -  Dec 12, 2010

Keep at it Failed ReHab it will all start coming back to you. =P

 Respond  
IllogicTC   -  Dec 11, 2010
on *:CLOSE:@: {
  if ($target == @P2P_Messages) away
}

Auto un-away after sifting through and closing the Message catcher? :D
(Can't remember if the @ should be there on @P2P_Messages when checking $target)

 Respond  
Failed ReHab   -  Dec 11, 2010

i am sure yours is much better then mine .. am just gettin back to learning again .. an i was just teasing bout using mine lol ... u can have some gummybears yep yep :P

 Respond  
IllogicTC   -  Dec 11, 2010

Wait. In the original code, shouldn't there be a check to see if @P2P_Messages exists before opening it? Otherwise you'd have a bunch of error codes all over when you come back?

Edit: NVM. Just checked for myself, it works. lol

 Respond  
blackvenomm666   -  Dec 11, 2010

well failed i worked hard on mine so i feel that i must use it. might not be as small as yours is but it works great and i prefer dialog work anyways haha

 Respond  
IllogicTC   -  Dec 11, 2010

notice::?: write the notice to the grabber and note that it came privately.
notice:
:#: write the notice to the grabber and note that it came from the channel.

There XD

 Respond  
Failed ReHab   -  Dec 11, 2010

well no gummybears for you then blackvenomm lol

 Respond  
blackvenomm666   -  Dec 11, 2010

haha just cause i made it doesnt mean im using it:) i've got my own notice/pm catcher:)

 Respond  
Failed ReHab   -  Dec 11, 2010

i will have to test his and see if i can flood him then lol .. but yes your right about most having protection .. i tend to like anything new have it added in case lol .. but thats just me .. us girls need all the protection we can get lol jk

 Respond  
jaytea   -  Dec 11, 2010

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.

 Respond  
IllogicTC   -  Dec 11, 2010

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

 Respond  
Failed ReHab   -  Dec 11, 2010

if you have it grab all notices you may need to add flood protection if you are admin on a site . just an idea ?

 Respond  
blackvenomm666   -  Dec 11, 2010

the way i did it grabs all notices

 Respond  
IllogicTC   -  Dec 11, 2010

on ^:NOTICE::*: It could catch ALL notices to you then, not just ones in PMs :P

 Respond  
blackvenomm666   -  Dec 11, 2010

@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
    }
  }
}
 Respond  
IllogicTC   -  Dec 11, 2010

Interesting concept, aggregating all the potential private messages you get into one simple window. Perhaps a future incarnation could also log /notices? :P

The best part is, this does the job it is meant to do in only 12 lines.

 Respond  
Failed ReHab   -  Dec 11, 2010

hey GummyBear Farming is a good occuption lol always a sweet job bahahahaha

 Respond  
napa182   -  Dec 11, 2010

LMFAO @ GummyBear Farmer

nice Failed ReHab sorry that you have to repost ur snippets.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.