mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2005
Posts: 193
A
Vogon poet
OP Offline
Vogon poet
A
Joined: Feb 2005
Posts: 193
Code:
on *:INPUT:*: {
  if ($away == on) {
    inc %lines 1
    if (%lines => 3) { /back | unset %lines }
  }
} 
How can I alter this to exclude whispers, notices, and actions? (or any 1)

Thanks to sparta for the above script!

R
ricky_knuckles
ricky_knuckles
R
if (($ctrlenter) || ((/* !iswm $1-) && ($iif($readini(mirc.ini,text,commandchar),$v1,/) $+ * !iswm $1-))) {

?

Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
Code:
on *:input:#:{
  if ($away) && (!$istok(/ $readini($mircini,text,commandchar),$left($1,1),32)) && (!$ctrlenter) && (!$inpaste) { 
    if (%lines > 2) {
      back
      unset %lines
    }
  }
}

Joined: Feb 2005
Posts: 193
A
Vogon poet
OP Offline
Vogon poet
A
Joined: Feb 2005
Posts: 193
No. I'm afraid that's not working. It executes "back" when in a whisper after 3 imputs. Any ideas why?

I
Iori
Iori
I
Noticee that tidy changed the first line too so it won't trigger for query windows.
  • on *:input:#:{

Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
It shouldn't, since I clearly made the event only fire in channels.

Joined: Feb 2005
Posts: 193
A
Vogon poet
OP Offline
Vogon poet
A
Joined: Feb 2005
Posts: 193
blush Opps! I feel really stupid now! Thanks tidy and Iori!


Link Copied to Clipboard