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.
Old posts that have not been replied to for several years.
Bader
Voice
Posts: 35 Joined: Sat Mar 12, 2005 5:34 am
Post
by Bader » Fri Apr 29, 2005 7:58 am
exmp: when user join channel
(Fri)(02،40،pm) * Joins: sc2004- (
blhab@dyn92.pir3.nas.panafonet.gr )
i am add on userban .+ban *!*@*.gr Flooding ip
i need the bot make:
(02،40،pm) * Bot sets mode: +MR
when he kickban the user:
(02،40،pm) * Bot sets mode: +b *!*@*.gr
(02،40،pm) * sc2004- was kicked by Bot (Flooding ip)
the after he kickban him he open the mode
(02،40،pm) * Bot sets mode: -MR
if any one can help me with this tcl
avilon
Halfop
Posts: 64 Joined: Tue Jul 13, 2004 6:58 am
Location: Germany
Post
by avilon » Fri Apr 29, 2005 1:16 pm
Code: Select all
bind join -|- * whatever
proc whatever {nick host hand chan} {
if {[matchban $nick!$host]} {
putquick "MODE $chan +MR"
utimer 10 [list puthelp "MODE $chan -MR"]
}
}
Last edited by
avilon on Fri Apr 29, 2005 6:01 pm, edited 1 time in total.
Bader
Voice
Posts: 35 Joined: Sat Mar 12, 2005 5:34 am
Post
by Bader » Fri Apr 29, 2005 1:31 pm
avilon wrote: Code: Select all
bind join -|- * whatever
proc whatever {nick host hand chan} {
if {[matchban $nick!$host]} {
putquick "MODE $chan +MR"
utimer 10 [list puthelp "MODE $chan -MR"}
}
}
when i make like that i`ll working?
bind join -|- * *!*@200.*
proc whatever {nick host hand chan} {
if {[matchban $nick!$host]} {
putquick "MODE $chan +MR"
utimer 10 [list puthelp "MODE $chan -MR"}
}
}
avilon
Halfop
Posts: 64 Joined: Tue Jul 13, 2004 6:58 am
Location: Germany
Post
by avilon » Fri Apr 29, 2005 1:34 pm
Code: Select all
bind join -|- "*!*@200.*" whatever
Bader
Voice
Posts: 35 Joined: Sat Mar 12, 2005 5:34 am
Post
by Bader » Fri Apr 29, 2005 2:29 pm
thanks
Bader
Voice
Posts: 35 Joined: Sat Mar 12, 2005 5:34 am
Post
by Bader » Fri Apr 29, 2005 4:02 pm
bind join -|- "*!*@*.verizon-gni.com" whatever
proc whatever {nick host hand chan} {
if {[matchban $nick!$host]} {
putquick "MODE $chan +MR"
utimer 10 [list puthelp "MODE $chan -MR"}
}
}
[16:00] Tcl error in file 'eggdrop.conf':
[16:00] invalid command name "}"
while executing
"} "
(file "scripts/test.tcl" line 7)
invoked from within
"source scripts/test.tcl"
(file "eggdrop.conf" line 1223)
[16:00] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
avilon
Halfop
Posts: 64 Joined: Tue Jul 13, 2004 6:58 am
Location: Germany
Post
by avilon » Fri Apr 29, 2005 6:02 pm
just a typo..
Replace
Code: Select all
utimer 10 [list puthelp "MODE $chan -MR"}
with
Code: Select all
utimer 10 [list puthelp "MODE $chan -MR"]
Bader
Voice
Posts: 35 Joined: Sat Mar 12, 2005 5:34 am
Post
by Bader » Fri Apr 29, 2005 7:22 pm
avilon wrote: just a typo..
Replace
Code: Select all
utimer 10 [list puthelp "MODE $chan -MR"}
with
Code: Select all
utimer 10 [list puthelp "MODE $chan -MR"]
dosn`t working
see
bind join -|- *!*@62.150.* whatever
proc whatever {nick host hand chan} {
if {[matchban $nick!$host]} {
putquick "MODE $chan +MR"
utimer 10 [list puthelp "MODE $chan -MR"]
}
}
-----
(Sat)(02،19،am) * Shjon sets mode: +v ffffff
(Sat)(02،20،am) * Parts: +ffffff (Kw@62.150.203.141)
(Sat)(02،20،am) * Joins: ffffff (Kw@62.150.203.141)
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Fri Apr 29, 2005 9:13 pm
Code: Select all
bind join -|- * whatever
proc whatever {nick host hand chan} {
if {[matchban $nick!$host $chan]} {
putquick "MODE $chan +MR"
utimer 10 [list puthelp "MODE $chan -MR"]
}
}
Use this and don't change anything (i.e. leave * as it is) and it should set the channel MR if the user is in the bot's
channel banlist.
Bader
Voice
Posts: 35 Joined: Sat Mar 12, 2005 5:34 am
Post
by Bader » Sat Apr 30, 2005 8:19 am
Sir_Fz wrote: Code: Select all
bind join -|- * whatever
proc whatever {nick host hand chan} {
if {[matchban $nick!$host $chan]} {
putquick "MODE $chan +MR"
utimer 10 [list puthelp "MODE $chan -MR"]
}
}
Use this and don't change anything (i.e. leave * as it is) and it should set the channel MR if the user is in the bot's
channel banlist.
ok i test it but there some prb
see plz
(Sat)(03،04،pm) * Joins: ffffff (Kw@62.150.203.141)
(Sat)(03،04،pm) * Reema sets mode: +MR
(Sat)(03،04،pm) * Reema sets mode: +MR
(Sat)(03،04،pm) * Reema sets mode: +MR
(Sat)(03،04،pm) * Reema sets mode: +b *!*Kw@62.150.*
the bot close channel mode more tnan 2 i want to close it once only
^DooM^
Owner
Posts: 772 Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:
Post
by ^DooM^ » Sat Apr 30, 2005 9:16 am
That script shouldn't do that. the only thing i can think of is if more than 1 user on channel matches the ban. try this
Code: Select all
bind join -|- * whatever
set modemr 0
proc whatever {nick host hand chan} {
if {[matchban $nick!$host $chan] && $::modemr == 0} {
putquick "MODE $chan +MR"
set modemr 1
utimer 10 [list puthelp "MODE $chan -MR"]
utimer 11 "set modemr 0"
}
}
not tested
Edit: oops forgot the quotes thanks sir_fz
Last edited by
^DooM^ on Sat Apr 30, 2005 9:40 am, edited 1 time in total.
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Sat Apr 30, 2005 9:33 am
utimer 11 set modemr 0
you might want to change that to
Bader
Voice
Posts: 35 Joined: Sat Mar 12, 2005 5:34 am
Post
by Bader » Sat Apr 30, 2005 9:43 am
Sir_Fz wrote: utimer 11 set modemr 0
you might want to change that to
the bot he still close channel mode more tnan 2 i want to close it once only
Bader
Voice
Posts: 35 Joined: Sat Mar 12, 2005 5:34 am
Post
by Bader » Sat Apr 30, 2005 9:45 am
Bader wrote: Sir_Fz wrote: utimer 11 set modemr 0
you might want to change that to
the bot he still close channel mode more tnan 2 i want to close it once only
i change and test it bot he still
Code: Select all
bind join -|- * whatever
set modemr 0
proc whatever {nick host hand chan} {
if {[matchban $nick!$host $chan] && $::modemr == 0} {
putquick "MODE $chan +MR"
set modemr 1
utimer 10 [list puthelp "MODE $chan -MR"]
utimer 11 "set modemr 0"
}
}
---
see thats its
and he still close channel mode more tnan 2 i want to close it once only
(Sat)(04،41،pm) -> [Reema] CHAT
(Sat)(04،42،pm) * Joins: ffffff (Kw@62.150.203.141)
(Sat)(04،42،pm) * Reema sets mode: +MR
(Sat)(04،42،pm) * Reema sets mode: +MR
(Sat)(04،42،pm) * Reema sets mode: +MR
(Sat)(04،42،pm) * Reema sets mode: +b *!*Kw@62.150.*
------
^DooM^
Owner
Posts: 772 Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:
Post
by ^DooM^ » Sat Apr 30, 2005 9:54 am
That should not be possible. Did you rehash your bot after making the code changes? If it still does it on a rehash try restarting it completely just to save our sanity
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born