Simple away dialog by Hermes [Edited]

By Hermes on Jul 18, 2011

Screenshots

Hi, here's a simple away dialog by me, really easy, I made it in 10 minutes...
it runs x)

Hermes

[Edit 1] Automatic answer when someone say your name while you're away.
[Edit 2] Stores messages in a window if your name is in, and stores notices in another window.
[Edit 3] You can now set an away nick.

dialog awbyH {
  title "Simple away dialog by Hermes"
  size -1 -1 137 74
  option dbu
  button "Set away!", 1, 4 43 63 10
  edit "", 2, 4 13 129 10
  text "Enter your away message here", 3, 4 5 78 8
  text "Enter your away nick here", 4, 4 23 129 8
  button "Unset away!", 5, 68 43 66 10
  button "I've finish !", 6, 43 57 50 10, ok
  edit "", 7, 4 31 129 10
}

menu channel {
  away by Hermes : dialog -m awbyH awbyH
}
on *:dialog:awbyH:*:*:{
  if ($devent == init) { 
    did -a awbyH 2 %awayreason
    did -a awbyH 7 %awaynick
  }
  if ($devent == edit) {
    if ($did == 2) { set %awayreason $did(2) }
    if ($did == 7) { set %awaynick $did(7) }
  }
  if ($devent == sclick) {
    if (($did == 1) && (!$away) && ($len(did(2)) > 3)) { set %nick $me | nick %awaynick | amsg 4I'm away for the reason: %awayreason | away did(2) }
    if (($did == 5) && ($away)) { nick %nick | unset %nick | amsg 4I'm back. I was away for the reason %awayreason 4during $duration($awaytime) | unset %awayreason | away }
  }
}

on *:text:*:*:{
  if (($me isin $strip($1-)) && ($away)) { 
    msg $chan 1I'm curently away for the reason: %awayreason $+ . I'll be back later.  
    window @AwayHighlight 
    aline @AwayHighlight 0,4 Highlight 4,0 $time $chan $nick :1 $1-
  }
}

on *:notice:*:*: {
  if ($away) {
    window @AwayNotice
    aline @AwayNotice 0,4 Notice 4,0 $time $chan $nick :1 $1-
  }
}

Comments

Sign in to comment.
Stewie1k94   -  Sep 19, 2012

Aha2Y

http://sackheads.org/~bnaylor/spew/away_msgs.html
I lol'd at that. Any way, it's a good script. I'll test it later, since not able to right now.

 Respond  
Hermes   -  Dec 27, 2011

Edited

 Respond  
Epic   -  Aug 07, 2011

josh?

 Respond  
Hermes   -  Jul 19, 2011

Yes Dean as i said on irc i will exerce me with sockets, and i know i can ask you if i have any doubt, i know where find you ;p

 Respond  
_Dean_   -  Jul 18, 2011

i agree that away messages really annoy, but we cant discourage ppl who are starting, by the way Hermes you need to practice some socket scripts, if you have something in mind, or any doubt tell me
i will give you a 7/10

 Respond  
Hermes   -  Jul 18, 2011

ok i update it thanks napa182

 Respond  
napa182   -  Jul 18, 2011

bitching about away messages as in that link posted by Aha2Y is just pathetic. funny read tho.

@Hermes you may want to change the menu to something else as the can screw with picwins an other things, also try to in-corp $awaymsg into it to lessen the global vars.

 Respond  
Hermes   -  Jul 18, 2011

and? i do what i want

 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.