This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Chan Ban with Secret channels

Old posts that have not been replied to for several years.
Locked
S
Silas

Chan Ban with Secret channels

Post by Silas »

I downloaded 3 different variations of a chan ban script and they mention banning channels according to a whois match. How would this work with a channel tha is +s since it won't appear in the whois (unless the bot is also in that chan)? Will the script still work or is there no way around this?
g
gatus

Post by gatus »

well a bot can't ban someone on a channel he's not (and doesnt has ops [duh]).

or do i miss something in the question..?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

This all depends on how you are going about it all.

Doing a whois directly on a user, will return all the data you need to do a ban.

It is impossible to do a whois on a channel, as this is a nickname specific command.

The who command is a channel and nickname command.

The names command is channel only.

No matter what channels settings that are in place (unless you are on a server, that doen't use the modes as set in the RFC), you can gain hostname information, so long as you are on the same channel as the person (as stated, a whois will get the information regardless).

Considering you are pointing to banning users from other channels (though yo don't state where the ban will take place), it would be wise to post some more information regarding what you hope to accomplish.
S
Silas

Post by Silas »

Sorry but I dont think u guys understood what I meant. Let me show you an explanation of what the script does first:

#badchan 1.0 by Bass of Undernet's #eggdrop (bass@tclslave.net)
#
#This is a basic 'badchan' script to auto-ban ppl who are on other chans deemed 'bad'
#People are scanned on-join.

So what I need to know is how this will work with a secret channel since it won't show up in a whois.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

There is nothing you can do. As you have now obviously seen, it can only detect channels, that don't have +s.

This is a drawback of the +s channel mode, and will allways remain in IRC, as this mode provides comfort to channel owners.
S
Silas

Post by Silas »

Thanks alot man. That +s really is a drawback in my situation. but....c'est la vie.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

You can do something else, it's a bit dumb but will work. Put an eggdrop on the 'blacklisted' channel and the eggdrop that is dealing with the "blacklist' will ask for the 'slave' if $nick is in that channel 2. :)
Once the game is over, the king and the pawn go back in the same box.
S
Silas

Post by Silas »

Thats not a bad idea, is this a script that i'll have to write myself tho?
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Humm.. I guess so. :P
Once the game is over, the king and the pawn go back in the same box.
Locked