Away Manager...

By Vengeance on Mar 25, 2007

Just a simple snippet
right click then select go away and folow the prompt's

Menu * {
  Away SYS  
  .Go Away: { 
    Set %mainnick $me
    set %awaynick $me $+ `Away
    set %time $time(hh:nntt)
    set %away.reason $?="Set away reason:"
    if (!%away.reason) { 
      echo I'm sry but you need to set an away reason    
      halt 
    }
    away %away.reason
    nick $me $+ `Away
    describe $active I have left at %time Due to: %away.reason
  }
  .Come Back: {
    if ( %mainnick == $me ) { set %mainnick $?="Seem to have a error here input your main nick" }
    nick %mainnick
    describe $active I have come back from doing: %away.reason I have been away since %time and have been away for $duration($awaytime)
    away
    unset %away.reason
    unset %time
    unset %mainnick
  }
}
on *:OPEN:?:*: {
  if ( %away.reason ) {
    window @Away.Blocker
    aline -l @Away.Blocker ( $+ $time(hh:nntt) $+ ) $nick $+ : $1-
    write Away.log.txt ( $+ $time(hh:nntt) $+ ) $nick $+ : $1-
    msg $nick im sry $nick but since im away im not accepting query's... But your msg as been logged for me to read later :)
    close -m $nick
  }

  on *:TEXT:*:#: {
    If ( %awaynick isin $1- ) {
      notice $nick Im sorry but i seem to be away
      notice $nick :Stat's: %break Away Reason: %away.reason %break Left at: %time %break Time Away: $duration($awaytime) %break
    }

Comments

Sign in to comment.
Vengeance   -  Mar 27, 2007

isin string v1 is in string v2

i prefer that on not

iswm wildcard string v1 matches string v2

 Respond  
|MELIORITE|   -  Mar 27, 2007

You\'re getting there :)

 Respond  
Lindrian   -  Mar 27, 2007

Vengenance:
If (%awaynick iswm $1-) {
Thats the correct.

 Respond  
Vengeance   -  Mar 26, 2007

Oh an ignore the %break its just %break ||

 Respond  
Vengeance   -  Mar 26, 2007

on :TEXT::#: {
If ( %awaynick isin $1 ) {
notice $nick Im sorry but i seem to be away
notice $nick :Stat\'s: %break Away Reason: %away.reason %break Left at: %time %break Time Away: $duration($awaytime) %break
}

Added that should fix your sugestion :)

 Respond  
Vengeance   -  Mar 26, 2007

Okay ty meliorite ill try that :)

i love the sugestions you people come up with

 Respond  
|MELIORITE|   -  Mar 26, 2007

OK... for example, when the person comes back: \"ame i have come back from doing: %away.reason i have been away since %time and have been away for $duration($awaytime)\". Every time somebody goes afk and sets an \"amsg\" or \"ame\" it places it in every channel the person is on. If I shared 20 channels with that person I\'d be getting pretty annoyed at seeing the away and come back msg in every channel. Personally, I prefer it to operate on something like a nick response, where if the nick or part nick is said in a chan then the person who says the nick gets a notice or msg that has the away message. The nick change to mainnick|afk or something similar will give the general idea a person is away rather than sending to all channels on away or return. Thats what I meant... I hope its of some help to you.

 Respond  
Vengeance   -  Mar 26, 2007

Sry for double post but forgot to say if you have any other ideas and suggestions please let me know

and to Lindrian
I\'m not 100% on how to even use alias\'s and can\'t find a good tutorial
SO unless you can sugest a good guide im afraid im stuck to this...

 Respond  
Vengeance   -  Mar 26, 2007

\"Well, its not that good. WHat if you dont input a reason? Will it saw \"Left due to: \"..?\"

That has been fixed thx for letting me know about that

And |MELIORITE| i\'m sorry but i don\'t quite understand what you mean by that..

I guess i could use msg $active but thats just as annoying...

And i guess i could set %away as something more unique..

but for it to go off you would have to click go away since its a popup

 Respond  
|MELIORITE|   -  Mar 26, 2007

The use of \"amsg\" and \"ame\" can get a little annoying if you share a few channels in common with a person using it... the channels would get lit up like a christmas tree every time the away is set...

 Respond  
Lindrian   -  Mar 26, 2007

Well, its not that good. WHat if you dont input a reason? Will it saw \"Left due to: \"..?

I think you could do better if you used a few aliases instead, to make better if statements, and bring the whole script up. 3/10.

 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.