| View previous topic :: View next topic |
| Author |
Message |
natter Voice
Joined: 02 Sep 2005 Posts: 4
|
Posted: Sat Sep 03, 2005 4:27 am Post subject: no manual BAN tcl |
|
|
I want to add this feature at my tcl :
If guest_user add ban , Bot deop and remove ban
I try with ...
| Code: |
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 |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sat Sep 03, 2005 5:57 am Post subject: |
|
|
Try
| Code: | 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"
}
} |
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
De Kus Revered One

Joined: 15 Dec 2002 Posts: 1361 Location: Germany
|
Posted: Sun Sep 04, 2005 10:26 am Post subject: |
|
|
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... |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sun Sep 04, 2005 1:34 pm Post subject: |
|
|
| yep I think there was a bug in [pushmode] not handling bans correctly |
|
| Back to top |
|
 |
De Kus Revered One

Joined: 15 Dec 2002 Posts: 1361 Location: Germany
|
|
| Back to top |
|
 |
|