mIRC Home    About    Download    Register    News    Help

Print Thread
Set Back On Channel Input #4434 01/01/03 11:20 PM
Joined: Dec 2002
Posts: 174
P
PHMinistries Offline OP
Vogon poet
OP Offline
Vogon poet
P
Joined: Dec 2002
Posts: 174
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

Re: Set Back On Channel Input #4435 01/01/03 11:32 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
on *:INPUT:#:{
if ( $left($1,1) != / ) && ( %away == 1 ) {
commands
}
}

Re: Set Back On Channel Input #4436 01/01/03 11:38 PM
Joined: Dec 2002
Posts: 174
P
PHMinistries Offline OP
Vogon poet
OP Offline
Vogon poet
P
Joined: Dec 2002
Posts: 174
on *:INPUT:#:{
if (%inputreturn == on) && ( $left($1,1) != / ) && ( %away == 1 ) {
commands
}
}

would that work too??

Re: Set Back On Channel Input #4437 01/01/03 11:40 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Well you could have just tried it yourself, but yes, it would...

Re: Set Back On Channel Input #4438 01/01/03 11:54 PM
Joined: Dec 2002
Posts: 174
P
PHMinistries Offline OP
Vogon poet
OP Offline
Vogon poet
P
Joined: Dec 2002
Posts: 174
was going to say it didnt work for me but i got it
thanks alot

Last edited by PHMinistries; 01/01/03 11:56 PM.
Re: Set Back On Channel Input #4439 02/01/03 04:33 AM
Joined: Dec 2002
Posts: 30
A
arps Offline
Ameglian cow
Offline
Ameglian cow
A
Joined: Dec 2002
Posts: 30
mIRC has a similiar option built in:
Options > IRC > Options > cancel away on keypress

Re: Set Back On Channel Input #4440 02/01/03 05:37 AM
Joined: Dec 2002
Posts: 1,321
H
Hammer Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
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
  }
}


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C