1 Time Nick Response

By Soulkeeper on Feb 05, 2008

So, This is my shot at a 1 time nick response thing, for when you're afk. All you have to do, is /a (reason) and the rest works itself out. The snippet will check if they're in the variable, and if not, it'll give them a notice saying you're away, why, and how long. Then it adds the nick to the var. It works for text in a channel, and for when someone private messages you.

alias a {
  set %names 
  away $1-
}
on *:text:*:#: {
  if ($me isin $1-) && ($away = $true) {
    if ($nick !isin %names) {
      notice $nick $me is away. One-time response to nickname highlight. Away Reason: $awaymsg Been gone: $duration($awaytime)
      set %names $+(%names,$cr(32),$nick)
    }
  }
}
on *:text:*:?: {
  if ($away = $true) {
    if ($nick !isin %names) {
      msg $nick $me is away. One-time response to nickname highlight. Away Reason: $awaymsg Been gone: $duration($awaytime)
      set %names $+(%names,$cr(32),$nick)
    }
  }
}

Comments

Sign in to comment.
napa182   -  Feb 06, 2008

on mIRC 6.31:: > $chr(N)

Returns the character with ascii number N.

$chr(65) returns A

$chr(42) returns *

 Respond  
napa182   -  Feb 06, 2008

on mIRC 6.31 :: > $cr

Returns the carriage return character, the same as $chr(13).

 Respond  
guest598594   -  Feb 06, 2008

oh, really? never knew that...i use 6.21

 Respond  
Soulkeeper   -  Feb 06, 2008

mIRC 6.31 uses $cr().

 Respond  
guest598594   -  Feb 06, 2008

u mean $chr(32) Image

 Respond  
F*U*R*B*Y*   -  Feb 05, 2008

$cr(32) :S

 Respond  
Gemster   -  Feb 05, 2008

yer i see now soulkeeper thanks :p

 Respond  
Soulkeeper   -  Feb 05, 2008

Well, It doesn\'t clear the variable. To come back, you just do /a, and it keeps the variable. Next time you go away, it\'ll reset the var.

 Respond  
Gemster   -  Feb 05, 2008

looks good Soulkeeper.
i havent tested it yet as it will conflick with my own away system but i see it adds the nick to vars right so it wont notice them again :P,
but when u come back from away does it acually remove the nick from vars as the next time u set as away them nicks set in vars wont get another notice ?

guess i wont realy know till i test it but i will shortly and if it works good ill rate :P

 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.