mIRC Homepage
Posted By: bleach gettin chans not using whois? - 29/04/05 03:32 PM
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?
Posted By: mIRCManiac Re: gettin chans not using whois? - 29/04/05 03:43 PM
no
Posted By: Riamus2 Re: gettin chans not using whois? - 29/04/05 03:48 PM
Not unless you want to idle in those "bad" chans and use "ison".
Posted By: Darkmnm Re: gettin chans not using whois? - 29/04/05 05:32 PM
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)
Posted By: barawo i need you to help me - 29/04/05 07:49 PM
-Go away-
Posted By: barawo Re: i need you to help me - 29/04/05 07:50 PM
-Go away-
Posted By: xDaeMoN Re: i need you to help me - 29/04/05 07:58 PM
You wish somebody would give you credit card info.
Posted By: Riamus2 Re: i need you to help me - 29/04/05 08:05 PM
Lol. spammers are so funny.
Posted By: xDaeMoN Re: gettin chans not using whois? - 29/04/05 08:15 PM
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
  
Posted By: bleach Re: gettin chans not using whois? - 29/04/05 08:34 PM
when am on a global chan, that module will make lag too much.. anyway is there an easy way for irc operators?
Posted By: alhammer Re: i need you to help me - 29/04/05 08:58 PM
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
© mIRC Discussion Forums