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.

no manual BAN tcl

Old posts that have not been replied to for several years.
Locked
n
natter
Voice
Posts: 4
Joined: Fri Sep 02, 2005 12:12 pm

no manual BAN tcl

Post by natter »

I want to add this feature at my tcl :
If guest_user add ban , Bot deop and remove ban

I try with ...

Code: Select all

proc no_manual_add_ban {nick uhost hand chan mode ban} { 

        if {(![matchattr $hand b]) && (![matchattr $hand n])} { 
        pushmode $chan -o $nick 
        putlog "Manual ban on $chan - Ban : $ban"
        pushmode $chan -b $ban 
        } 
} 
In Chan :

GUEST_user sets mode: +b *!test@test
BOT sets mode: -o GUEST_user

In Partyline :

Manual ban on #testchan - Ban : *!test@test

Bot dont remove ban ... where is the error ?


tnx
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Try

Code: Select all

proc no_manual_add_ban {nick uhost hand chan mode ban} { 
 if {(![matchattr $hand b]) && (![matchattr $hand n])} {
  putserv "MODE $chan -ob $nick $ban"
  putlog "Manual ban on $chan - Ban : $ban" 
 } 
}
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

what version of eggdrop did you use? anyhow the only time I encountered such an error was in an ealier version of the new 1.7, but today it should be fixed.
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

yep I think there was a bug in [pushmode] not handling bans correctly
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Locked