| View previous topic :: View next topic |
| Author |
Message |
whittinghamj Op
Joined: 21 May 2006 Posts: 103
|
Posted: Sun Jun 04, 2006 12:19 pm Post subject: |
|
|
works fine for me
here is the working code
| Code: |
bind pub o|v !sections pub:sections
setudef flag inc
proc pub:sections {nick uhost hand chan arg} {
set chan [string tolower $chan]
if {[channel get $chan inc]} {
putserv "PRIVMSG $chan :what ever you waht to say here"
}
}
putlog "!SECTIONS"
|
then in the console / idx window.
| Code: |
.chanset #channel +inc
|
thats all you need buddy should work just fine. |
|
| Back to top |
|
 |
NTHosts Op
Joined: 10 Oct 2005 Posts: 100 Location: UK
|
Posted: Sun Jun 04, 2006 7:34 pm Post subject: err |
|
|
What happend to the 'sajoin' bit, thats the bit that caught my eye.  _________________ www.NT-Hosts.Net - More than just a host |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Sun Jun 04, 2006 8:08 pm Post subject: |
|
|
replace
putserv "PRIVMSG $chan :what ever you waht to say here"
with
putserv "sajoin $nick #help"
#help is used as a reference only, any channel here will work |
|
| Back to top |
|
 |
NTHosts Op
Joined: 10 Oct 2005 Posts: 100 Location: UK
|
Posted: Mon Jun 05, 2006 4:57 pm Post subject: perfect |
|
|
Works perfect thanks..
One more thing though, how can i set this so only users with a certain flag on my bot can use it 2 enter a channel ?
Thing is i need 2 limit a channels access to only a few users but i don't wanna use keys or whatever, so if this could be done would be great  _________________ www.NT-Hosts.Net - More than just a host |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Mon Jun 05, 2006 5:13 pm Post subject: |
|
|
change the bind flags
bind pub o|o !cmd proc
the flags in that example requires the requester to either have global ops or ops on the channel the request is made on (this means attribute flags in the bot userfile) |
|
| Back to top |
|
 |
NTHosts Op
Joined: 10 Oct 2005 Posts: 100 Location: UK
|
Posted: Mon Jun 05, 2006 5:30 pm Post subject: erm |
|
|
I just tried to set it to
bind pub o|d
then gave the user +d on the bot, didnt' work though, am I doing it right ? :S _________________ www.NT-Hosts.Net - More than just a host |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Mon Jun 05, 2006 5:34 pm Post subject: Re: erm |
|
|
| NTHosts wrote: | I just tried to set it to
bind pub o|d
then gave the user +d on the bot, didnt' work though, am I doing it right ? :S |
You need to learn about eggdrop's default flags.
.help whois
Eggdrop allows for user-specified flags using 0-9 and A-Z (uppercase). |
|
| Back to top |
|
 |
NTHosts Op
Joined: 10 Oct 2005 Posts: 100 Location: UK
|
Posted: Mon Jun 05, 2006 6:46 pm Post subject: hehe |
|
|
I see my fault.. Thanks for yah help dood  _________________ www.NT-Hosts.Net - More than just a host |
|
| Back to top |
|
 |
|