| View previous topic :: View next topic |
| Author |
Message |
Shechea Voice
Joined: 07 Apr 2007 Posts: 4
|
Posted: Sat Apr 07, 2007 10:31 pm Post subject: /msg botnick addme #channel nick |
|
|
| hy i need a tcl 4 all user who join to my chan to get |N in his chan something like " [b]/msg botnick addme #channel nick [/b]" if someoane help me please seand me a email bilutaboy@yahoo.com... i whant to make a free botchannels and i dont trust anyone to make him m| to my egg |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sun Apr 08, 2007 6:04 am Post subject: |
|
|
You want to give anyone who msgs your bot 'addme <chan> <nick>' to get +N on his channel? _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
Shechea Voice
Joined: 07 Apr 2007 Posts: 4
|
Posted: Sat Apr 28, 2007 3:21 am Post subject: |
|
|
| Yes ,I whant anyone who msgs to get +N in his channel... if you whant to help me pls |
|
| Back to top |
|
 |
YooHoo Owner

Joined: 13 Feb 2003 Posts: 939 Location: Redwood Coast
|
Posted: Sat Apr 28, 2007 11:29 am Post subject: |
|
|
| Shechea wrote: | | Yes ,I whant anyone who msgs to get +N in his channel... if you whant to help me pls | kinda a bad idea, don't ya think? This will give everyone complete channel authority to do as they wish. A channel master has more than enough access on a channel, no need to make them channel owner..... _________________
Johoho's TCL for beginners
 |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Sat Apr 28, 2007 1:08 pm Post subject: |
|
|
I guess that would depend on what other scripts you've loaded (think you're confusing it with n flag - case does matter).
| Code: | bind msg - addme msg:addme
proc msg:addme {nick host hand text} {
if {![validuser $hand]} {
set hand [string range $nick 0 8]
if {![validuser $hand]} {
adduser [string range $nick 0 8] [maskhost "${nick}!${host}"]
} else {
puthelp "PRIVMSG $nick :Unable to register new handle. Please contact an admin to help you in person."
return 1
}
}
chattr $hand "+|N" "#channel"
} |
Code is untested, and comes without any warranties  _________________ NML_375, idling at #eggdrop@IrcNET
Last edited by nml375 on Wed Dec 16, 2009 1:51 pm; edited 2 times in total |
|
| Back to top |
|
 |
Shechea Voice
Joined: 07 Apr 2007 Posts: 4
|
Posted: Mon Apr 30, 2007 1:47 pm Post subject: :cry: |
|
|
he can`t reade Channel :cry: "Tcl error [msg:addme]: no such channel"
if you can to maked to have acc only to his channel not on me channel or ather chan... 10x for helping me |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Mon Apr 30, 2007 2:03 pm Post subject: |
|
|
You'll have to change #channel accordingly to match your channel. You'd probably also have to enclose it with quotes ("#channelname"), updating previous post with this _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Tue May 01, 2007 10:03 am Post subject: |
|
|
not to be picky, wouldn't it work better to use:
| Code: | | chattr $hand "+|N" "${text}" |
and have people use "/msg botnick addme #channel", or am I missing something here? |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Tue May 01, 2007 10:08 am Post subject: |
|
|
Ahh, true. Probably did'nt read the initial request carefully enough  _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Tue May 01, 2007 11:29 am Post subject: |
|
|
The proper syntax for [chattr] is:
| Code: | | chattr <hand> <+/->global-flags|<+/->specific-flags [channel] |
In your case, chattr $hand +|N $text works correctly simply because the bot tries to give +"" global and +N channel-specific (+ is by default), but just to be correct +|N should be |+N  _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Tue May 01, 2007 5:43 pm Post subject: |
|
|
True, my bad. _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
Shechea Voice
Joined: 07 Apr 2007 Posts: 4
|
Posted: Mon Jul 09, 2007 3:52 pm Post subject: |
|
|
| 10x for helping me i gate what i need and it very cool 10x agan |
|
| Back to top |
|
 |
|