egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

/msg botnick addme #channel nick

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
Shechea
Voice


Joined: 07 Apr 2007
Posts: 4

PostPosted: Sat Apr 07, 2007 10:31 pm    Post subject: /msg botnick addme #channel nick Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Apr 08, 2007 6:04 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Shechea
Voice


Joined: 07 Apr 2007
Posts: 4

PostPosted: Sat Apr 28, 2007 3:21 am    Post subject: Reply with quote

Yes ,I whant anyone who msgs to get +N in his channel... if you whant to help me pls
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
YooHoo
Owner


Joined: 13 Feb 2003
Posts: 939
Location: Redwood Coast

PostPosted: Sat Apr 28, 2007 11:29 am    Post subject: Reply with quote

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.....
_________________
Mr. Green
Johoho's TCL for beginners
Mr. Green
Back to top
View user's profile Send private message Send e-mail
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sat Apr 28, 2007 1:08 pm    Post subject: Reply with quote

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 Razz
_________________
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
View user's profile Send private message
Shechea
Voice


Joined: 07 Apr 2007
Posts: 4

PostPosted: Mon Apr 30, 2007 1:47 pm    Post subject: :cry: Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Mon Apr 30, 2007 2:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Tue May 01, 2007 10:03 am    Post subject: Reply with quote

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
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue May 01, 2007 10:08 am    Post subject: Reply with quote

Ahh, true. Probably did'nt read the initial request carefully enough Embarassed
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Tue May 01, 2007 11:29 am    Post subject: Reply with quote

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 Smile
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue May 01, 2007 5:43 pm    Post subject: Reply with quote

True, my bad.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Shechea
Voice


Joined: 07 Apr 2007
Posts: 4

PostPosted: Mon Jul 09, 2007 3:52 pm    Post subject: Reply with quote

10x for helping me i gate what i need and it very cool 10x agan
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber