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 

Adding users

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
DaRkOoO
Halfop


Joined: 27 Sep 2008
Posts: 67

PostPosted: Mon Jun 22, 2009 7:22 pm    Post subject: Adding users Reply with quote

Hi,

I'm using some script for adding/delting users,but i have problem.

Code:

bind pub m|m .addop proc_addop
bind pub m|m .delop proc_delop

# Addop Process
proc proc_addop { nick uhost hand chan text } {
set addopnick [nick2hand $text]
chattr $addopnick +o
putserv "PRIVMSG $chan :$text Has Been Giving Auto-Op Access"
putlog "$addopnick added $addopnick to Auto-Op"
putquick "MODE $chan +o $text"
putserv "NOTICE $text :You Have Been Givin Auto-Op Access For Channel: \002$chan\002 use \002.commands\002 To List New Channel Commands Available To You"
unset addopnick
}
# Delop Process
proc proc_delop { nick uhost hand chan text } {
set delopnick [nick2hand $text]
chattr $delopnick -o
putserv "PRIVMSG $chan :$text Removed From Auto-Op Access"
putlog "$delopnick removed $delopnick from Auto-Op"
putquick "MODE $chan -o $text"
unset delopnick
}


So,when I type .adduser nick,he did send the msg in channel,but he did not add that nick as +o,I dunno what he did,but that nick cant use command which are for +o users.
So,I was wondering is there something wrong with this script
Also,when i try to add user manually through telnet,i got this:

Code:
.+user mawa_opasnica
[01:20] #DaRkOoO# +user mawa_opas
Added mawa_opas (no host) with no password and no flags.


Why he did'nt add whole nick?

Thanks for any kind of help.

Regards,
Darko.
Back to top
View user's profile Send private message
TCL_no_TK
Owner


Joined: 25 Aug 2006
Posts: 509
Location: England, Yorkshire

PostPosted: Mon Jun 22, 2009 9:43 pm    Post subject: Reply with quote

The nickname is longer than eggdrop's max handle lenth settings. Very Happy
_________________
TCL the misunderstood
Back to top
View user's profile Send private message Send e-mail
DaRkOoO
Halfop


Joined: 27 Sep 2008
Posts: 67

PostPosted: Tue Jun 23, 2009 5:47 am    Post subject: Reply with quote

How can I change that length?
Back to top
View user's profile Send private message
LB_1981
Voice


Joined: 08 Jun 2009
Posts: 15

PostPosted: Tue Jun 23, 2009 8:27 am    Post subject: Reply with quote

look for this in your eggdrop.conf

# This setting allows you to specify the maximum nick-length supported by your
# network. The default setting is 9. The maximum supported length by Eggdrop
# is 32.
set nick-len 9

Change set nick-len 9 to whatever you want
_________________
LB_1981
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Tue Jun 23, 2009 8:36 am    Post subject: Reply with quote

Increasing nick-len won't solve your problem, you need to modify the max hadle-length of your eggdrop. Read this.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
DaRkOoO
Halfop


Joined: 27 Sep 2008
Posts: 67

PostPosted: Tue Jun 23, 2009 8:46 am    Post subject: Reply with quote

Okey,thanks..
What about my 1st question?Can anybody help me with that?

[EDIT] : I've resolved first problem allready.. Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help 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