mIRC Homepage
Posted By: sameh84 how to know the channel - 30/01/08 04:12 AM
i am in many channels and i got dc in 2 channels so how can i make the script echo me the name of these 2 rooms only and close their windows can do that ?
Posted By: LostShadow Re: how to know the channel - 30/01/08 03:51 PM
Originally Posted By: sameh84
i am in many channels and i got dc in 2 channels


Explain to me how you got "dc" in 2 channels.

-Neal.
Posted By: RoCk Re: how to know the channel - 30/01/08 04:03 PM

By dc do you mean disconnected/kicked from the channel? If so, you could use this...

Code:

on *:KICK:#chan1,#chan2: {
  if ($knick != $me) return
  echo -acet kick * You were kicked from # by $nick ( $+ $1- $+ )
  part #
}



Change #chan1 and #chan2 to the channels you want.
Posted By: sameh84 Re: how to know the channel - 31/01/08 02:09 AM
i joined different rooms but i have been disconnected from 2 rooms so can the script tell me the 2 rooms i 've been disconnected from ? not tell me the all of rooms i am in ?! do u got wt i am meaning
Posted By: RoCk Re: how to know the channel - 31/01/08 03:53 AM

Try it and see if it's what you wanted, if it's not, delete it.
Posted By: LostShadow Re: how to know the channel - 31/01/08 03:06 PM
Originally Posted By: sameh84
i joined different rooms but i have been disconnected from 2 rooms so can the script tell me the 2 rooms i 've been disconnected from ?


1st try explaining how you can get disconnected from 2 rooms and not others?

Originally Posted By: sameh84i
not tell me the all of rooms i am in ?! do u got wt i am meaning


Yes, it's just not possible or you got the wrong usage. It's not possible to be disconnected in 2 rooms but not in other rooms on the same connection network.

Maybe if you got kicked from 2 rooms - then it is possible to know which rooms you got kicked from.

-Neal.
Posted By: RoCk Re: how to know the channel - 31/01/08 03:29 PM

Over the years I've seen a lot of newbies use the word disconnected instead of kicked. I assumed in my first reply that was the case.
Posted By: XTZGZoReX Re: how to know the channel - 01/02/08 12:28 PM
I'm confused. And @ the topic starter: Relax, we're not here to help you if you tell us to, but if we want to.

Now, here's what ya can do:

Code:
on *:disconnect: {
  echo -a You were disconnected from $server $+ : $+ $port at $network $+ : $1-
}


PS: I think he means "networks" when he says "rooms".
© mIRC Discussion Forums