mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2007
Posts: 9
M
Mogar Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Feb 2007
Posts: 9
Code:
on ^*:quit: {
  if ($1 != $null) var %q = ( $+ $1- $+ )  
  if ($me != $nick ) { $e.part $space(1) 15 $address($nick,5) 14 has quit4:  %q $ts2 } 
  haltdef
}


how do i make that show up in the channels the person is in with me? ie if person is in #chan1 and #chan2 have it show up in both of those but not #chan3

Joined: Jan 2005
Posts: 192
Vogon poet
Offline
Vogon poet
Joined: Jan 2005
Posts: 192
Code:
on ^*:QUIT:{
  var %i = 1
  while ($comchan($nick, %i)) {
    echo -bfrt $v1 $e.part $space(1) 15 $address($nick,5) 14 has quit4:  ( $+ $1- $+ ) $ts2
    inc %i
  }
  haltdef
}


echo -a $signature
Joined: Feb 2007
Posts: 9
M
Mogar Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Feb 2007
Posts: 9
Originally Posted By: Brax
Code:
on ^*:QUIT:{
  var %i = 1
  while ($comchan($nick, %i)) {
    echo -bfrt $v1 $e.part $space(1) 15 $address($nick,5) 14 has quit4:  ( $+ $1- $+ ) $ts2
    inc %i
  }
  haltdef
}


[17:25:49] echo -lt 15 ChavBabe-uk!ChavBabe-u@2E4A887B.25A4C9DD.A95D9A5C.IP 14 has quit4: (Connection reset by peer) [17:25:49]

Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
so, it seems, $e.port returns already an echo. change it to
Code:
on ^*:QUIT:{
 var %i = 1
 while ($comchan($nick, %i)) {
   $e.part $v1 $space(1) 15 $address($nick,5) 14 has quit4:  ( $+ $1- $+ ) $ts2
   inc %i
 }
 haltdef
}

Joined: Feb 2007
Posts: 9
M
Mogar Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Feb 2007
Posts: 9
Originally Posted By: Horstl
so, it seems, $e.port returns already an echo. change it to
Code:
on ^*:QUIT:{
 var %i = 1
 while ($comchan($nick, %i)) {
   $e.part $v1 $space(1) 15 $address($nick,5) 14 has quit4:  ( $+ $1- $+ ) $ts2
   inc %i
 }
 haltdef
}



with this it goes to status (and this would be quite a bit easier if the on quit understood the $chan identifer =/

Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
One parts chans, but quits the entire network - there is no $chan and thats why there is no way arround "while ($comchan,Nick,N)".
I do not know what "alias e.part" returns; simply dont use it, and try:
Code:
on ^*:QUIT:{
 var %i = 1
 while ($comchan($nick, %i)) {
  echo -bfrt $v1 15 $address($nick,5) 14 has quit4:  ( $+ $1- $+ ) $ts2
 }
 haltdef
}

Joined: Feb 2007
Posts: 9
M
Mogar Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Feb 2007
Posts: 9
Originally Posted By: Horstl
One parts chans, but quits the entire network - there is no $chan and thats why there is no way arround "while ($comchan,Nick,N)".
I do not know what "alias e.part" returns; simply dont use it, and try:
Code:
on ^*:QUIT:{
 var %i = 1
 while ($comchan($nick, %i)) {
  echo -bfrt $v1 15 $address($nick,5) 14 has quit4:  ( $+ $1- $+ ) $ts2
 }
 haltdef
}


freezes my mIRC everytime someone quits

Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
argh - sry. forgot the line "inc %i" used in all examples above. here, its now past midnight, should hit the hay smile

Joined: Feb 2007
Posts: 9
M
Mogar Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Feb 2007
Posts: 9
ty for the help i added it and it works fine grin


Link Copied to Clipboard