egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

no manual BAN tcl

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
natter
Voice


Joined: 02 Sep 2005
Posts: 4

PostPosted: Sat Sep 03, 2005 4:27 am    Post subject: no manual BAN tcl Reply with quote

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
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Sep 03, 2005 5:57 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Sun Sep 04, 2005 10:26 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sun Sep 04, 2005 1:34 pm    Post subject: Reply with quote

yep I think there was a bug in [pushmode] not handling bans correctly
Back to top
View user's profile Send private message Visit poster's website
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Thu Sep 08, 2005 7:17 am    Post subject: Reply with quote

It was a 1.7.0 only bug: http://www.eggheads.org/bugzilla/show_bug.cgi?id=435
_________________
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
View user's profile Send private message MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber