Jump to content

Aways


Molson™

Recommended Posts

Anyone have any idea why these don't work?

 

raw 305:*: {
  var %N = $me, %x 1
  while (%x <= $Chan(0)) {
    var %Chan = $Chan(%x)
    if ($me(%Chan, %N)) {
      echo -c Other  %Chan $replace($tstamp,04,05) 14 (05-15 Return 05-14) (05-15 Your no longer away 05-14) 
      cline -l $Color(gray) %Chan $Fline(%Chan, %N, 1, 1)
    }
    inc %x
  }
  halt
}

raw 306:*: {
  var %N = $me, %x 1
  while (%x <= $Chan(0)) {
    var %Chan = $Chan(%x)
    if ($me(%Chan, %N)) {
      echo -c Other %Chan $replace($tstamp,04,05) 14 (05-15 Away 05-14) (05-15 Your marked as being away 05-14) 
      cline -l $Color(gray) %Chan $Fline(%Chan, %N, 1, 1)
    }
    inc %x
  }
  halt
}

Edited by Molson™
Link to comment
Share on other sites

Guest X-Fusion

Like I said, they could. It depends on how you use them. Server raws should be used with mIRCs inbuilt functions, such as $comchan or $chan. Whereas error replies shouldn't really serve to much of a problem.

Anyway, Molson ..

raw 305:*: {
    var %chan = $comchan($me,1)
    echo -c Other %chan $replace($tstamp,04,05) 14 (05-15 Return 05-14) (05-15 Your no longer away 05-14) 
cline -l $Color(gray) %chan $fline(%chan,$me,1,1)
    haltdef 
  }
raw 306:*: {
    var %chan = $comchan($me,1)
    echo -c Other %chan $replace($tstamp,04,05) 14 (05-15 Away 05-14) (05-15 Your marked as being away 05-14) 
cline -l $Color(gray) %chan $fline(%chan,$me,1,1)
    haltdef 
}

Should work. If it doesn't, try not to use variables and see what happens.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...