mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2003
Posts: 156
B
bleach Offline OP
Vogon poet
OP Offline
Vogon poet
B
Joined: Sep 2003
Posts: 156
hi, I don't wanna let the person to join my chan if he is on any bad chan which I dont want to. I tried gettin chans by using hes whois but I gotta do that on many user thats why my connection is closing. Is there a way to see the chans by not using whois?

Joined: Feb 2005
Posts: 681
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
no

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Not unless you want to idle in those "bad" chans and use "ison".


Invision Support
#Invision on irc.irchighway.net
Joined: Mar 2004
Posts: 155
D
Vogon poet
Offline
Vogon poet
D
Joined: Mar 2004
Posts: 155
I've seen scripts that have bad chan checker/kickers. They use a dialog to set the channel name that they own or are operator in and within that dialog you can also set a list of channels that you would consider to be a bad channel. Below is an example dialog.

Code:
dialog bad_chan {
  title "Bad Channel Kicker"
  size -1 -1 166 103
  option dbu
  box "", 1, 3 1 160 85
  button "&Cancel", 2, 133 90 30 10, cancel
  button "&Ok", 3, 99 90 30 10, ok
  combo 4, 11 13 66 53, size
  button "&Add", 5, 11 68 30 10
  button "&Remove", 6, 48 68 30 10
  box "Monitored Channels", 7, 7 5 74 77
  box "Bad Channels", 8, 85 5 74 77
  combo 9, 89 13 66 53, size
  button "&Add", 10, 89 68 30 10
  button "&Remove", 11, 126 68 30 10
  check "Monitor All Channels", 12, 3 90 66 10
}


It is possible to scan nicks when they enter the channel without seeing the whois reply and have the script checking for the listed channels within raw 319 i believe it is and if they are indeed in one of the bad channels listed within the dialog it will kick them. The dialog was thrown together quite quickly so excuse it's messyness. Anyone care to continue on with the coding be my guess as I am not the greatest scripter in the world and would take me sometime to actually write this code. (Takes forever when you constantly looking and reading the mirc help file)

#118822 29/04/05 07:49 PM
Joined: Apr 2005
Posts: 2
B
Bowl of petunias
Offline
Bowl of petunias
B
Joined: Apr 2005
Posts: 2
-Go away-

Last edited by Mentality; 29/04/05 09:34 PM.
#118823 29/04/05 07:50 PM
Joined: Apr 2005
Posts: 2
B
Bowl of petunias
Offline
Bowl of petunias
B
Joined: Apr 2005
Posts: 2
-Go away-

Last edited by Mentality; 29/04/05 09:34 PM.
#118824 29/04/05 07:58 PM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
You wish somebody would give you credit card info.


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
#118825 29/04/05 08:05 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Lol. spammers are so funny.


Invision Support
#Invision on irc.irchighway.net
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
Here is a simple example of doing a whois & checking if the person is on a bad channel.

Code:
on @!*:JOIN:#Channel: {
  .enable #chk.rooms
  set %rchan $chan
  .whois $nick
}

#chk.rooms off
raw 301:*: halt
raw 311:*: halt
raw 313:*: halt
raw 312:*: halt
raw 330:*: halt
raw 319:*: {
  if ( $me isop %rchan ) && ( $2 ison %rchan ) {
    if ( #BadChannel isin $3- ) { 
      ban -k %rchan $2 2 Bad Channel Detected! $+([,,$v1,,])
    }
  }
  haltdef
}
raw 318:*: .disable #chk.rooms | halt
#chk.rooms end
  


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
Joined: Sep 2003
Posts: 156
B
bleach Offline OP
Vogon poet
OP Offline
Vogon poet
B
Joined: Sep 2003
Posts: 156
when am on a global chan, that module will make lag too much.. anyway is there an easy way for irc operators?

#118828 29/04/05 08:58 PM
Joined: Feb 2005
Posts: 194
A
Vogon poet
Offline
Vogon poet
A
Joined: Feb 2005
Posts: 194
Quote:
Lol. spammers are so funny.

And stupid. Who would give out credit card info? Unless it's stolen, then you will find yourself in alot of trouble. Not a good idea. wink


"God sometimes puts us in the dark for us to see the light"

Link Copied to Clipboard