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
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.....
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
Last edited by nml375 on Wed Dec 16, 2009 1:51 pm, edited 2 times in total.
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
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
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