mIRC Homepage
Posted By: PHMinistries Set Back On Channel Input - 01/01/03 11:20 PM
how would i script a set back on channel input
meaning
if im on away

if i came back and wrote something
it would automaticly put me back unaway
Posted By: Collective Re: Set Back On Channel Input - 01/01/03 11:32 PM
on *:INPUT:#:{
if ( $left($1,1) != / ) && ( %away == 1 ) {
commands
}
}
Posted By: PHMinistries Re: Set Back On Channel Input - 01/01/03 11:38 PM
on *:INPUT:#:{
if (%inputreturn == on) && ( $left($1,1) != / ) && ( %away == 1 ) {
commands
}
}

would that work too??
Posted By: Collective Re: Set Back On Channel Input - 01/01/03 11:40 PM
Well you could have just tried it yourself, but yes, it would...
Posted By: PHMinistries Re: Set Back On Channel Input - 01/01/03 11:54 PM
was going to say it didnt work for me but i got it
thanks alot
Posted By: arps Re: Set Back On Channel Input - 02/01/03 04:33 AM
mIRC has a similiar option built in:
Options > IRC > Options > cancel away on keypress
Posted By: Hammer Re: Set Back On Channel Input - 02/01/03 05:37 AM
His might be using /scon -a or /scid -a to set /back on all networks...
Code:

on *:INPUT:#:{
  if ((/* !iswm $1-) && (%BackOnChanInput == on) && ($away)) {
    scon -a away
    scon -a nick %Normal.Nick
  }
}
© mIRC Discussion Forums