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.

global banlist extempt possible?

Old posts that have not been replied to for several years.
Locked
User avatar
sKy
Op
Posts: 194
Joined: Thu Apr 14, 2005 5:58 pm
Location: Germany

global banlist extempt possible?

Post by sKy »

I want disable the global banlist on some channels.
Or better, just enable the global banlist on some channels. (via chanflag +blacklist for example)
Possible?
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

a global is meant to be in ALL channels

But yes, It is possible to make it work in some channels i suppose

use:

Code: Select all

setudef flag blacklist
so you can use .chanset #channel +blacklist

And then add in whatever it uses (i'm guessing a join bind)

Code: Select all

if {![channel get $chan blacklist]} { return }
ofcourse, your channel variable might be different so change it to the right one
User avatar
sKy
Op
Posts: 194
Joined: Thu Apr 14, 2005 5:58 pm
Location: Germany

Post by sKy »

That`s bad.

I have to code a big script. Which isn`t easy.
- after adding ban look foreach channel if the user is on (bind pub)
- remove ban after exprie on all channels and remove from file
- write own file (hostmask, duration, expire)
- bind join
- bind nick
- refresh channels
- check all channels after restart
- ...

No better solution?
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

sKy wrote:No better solution?
Don't set global bans, when you don't want them ?
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Global bans are set by 'newban' try replacing that with 'newchanban' with which you would also need specify the channel name in the first argument.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Locked