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.

/msg botnick addme #channel nick

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
S
Shechea
Voice
Posts: 4
Joined: Sat Apr 07, 2007 8:39 pm

/msg botnick addme #channel nick

Post by Shechea »

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

Post by Sir_Fz »

You want to give anyone who msgs your bot 'addme <chan> <nick>' to get +N on his channel?
S
Shechea
Voice
Posts: 4
Joined: Sat Apr 07, 2007 8:39 pm

Post by Shechea »

Yes ,I whant anyone who msgs to get +N in his channel... if you whant to help me pls
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

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.....
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

I guess that would depend on what other scripts you've loaded (think you're confusing it with n flag - case does matter).

Code: Select all

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 :P
Last edited by nml375 on Wed Dec 16, 2009 1:51 pm, edited 2 times in total.
NML_375
S
Shechea
Voice
Posts: 4
Joined: Sat Apr 07, 2007 8:39 pm

:cry:

Post by Shechea »

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
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

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
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

not to be picky, wouldn't it work better to use:

Code: Select all

 chattr $hand "+|N" "${text}" 
and have people use "/msg botnick addme #channel", or am I missing something here?
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Ahh, true. Probably did'nt read the initial request carefully enough :oops:
NML_375
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

The proper syntax for [chattr] is:

Code: Select all

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 :)
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

True, my bad.
NML_375
S
Shechea
Voice
Posts: 4
Joined: Sat Apr 07, 2007 8:39 pm

Post by Shechea »

10x for helping me i gate what i need and it very cool 10x agan
Post Reply