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.

helloo can i find help with this tcl, :P

Old posts that have not been replied to for several years.
B
Bader
Voice
Posts: 35
Joined: Sat Mar 12, 2005 5:34 am

helloo can i find help with this tcl, :P

Post by Bader »

:)
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 :lol:
User avatar
avilon
Halfop
Posts: 64
Joined: Tue Jul 13, 2004 6:58 am
Location: Germany

Post by avilon »

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.
B
Bader
Voice
Posts: 35
Joined: Sat Mar 12, 2005 5:34 am

Post by Bader »

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"}
}
}
User avatar
avilon
Halfop
Posts: 64
Joined: Tue Jul 13, 2004 6:58 am
Location: Germany

Post by avilon »

Code: Select all

bind join -|- "*!*@200.*" whatever
B
Bader
Voice
Posts: 35
Joined: Sat Mar 12, 2005 5:34 am

Post by Bader »

thanks :D
B
Bader
Voice
Posts: 35
Joined: Sat Mar 12, 2005 5:34 am

dosn`t working :(

Post by Bader »

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)
User avatar
avilon
Halfop
Posts: 64
Joined: Tue Jul 13, 2004 6:58 am
Location: Germany

Post by avilon »

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"]
B
Bader
Voice
Posts: 35
Joined: Sat Mar 12, 2005 5:34 am

Post by Bader »

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)
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

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.
B
Bader
Voice
Posts: 35
Joined: Sat Mar 12, 2005 5:34 am

Post by Bader »

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
:(
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

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
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

utimer 11 set modemr 0
you might want to change that to

Code: Select all

utimer 11 "set modemr 0"
B
Bader
Voice
Posts: 35
Joined: Sat Mar 12, 2005 5:34 am

Post by Bader »

Sir_Fz wrote:
utimer 11 set modemr 0
you might want to change that to

Code: Select all

utimer 11 "set modemr 0"
:( the bot he still close channel mode more tnan 2 i want to close it once only
B
Bader
Voice
Posts: 35
Joined: Sat Mar 12, 2005 5:34 am

Post by Bader »

Bader wrote:
Sir_Fz wrote:
utimer 11 set modemr 0
you might want to change that to

Code: Select all

utimer 11 "set modemr 0"
:( 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.*
------
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

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
Locked