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 

[Solved] FZCommands

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


Joined: 30 Jan 2017
Posts: 23

PostPosted: Sat Jun 17, 2017 11:19 am    Post subject: [Solved] FZCommands Reply with quote

Hello Everyone!

I am using fzcommand.tcl by Opposing and I have two requests.

1. The eggdrop don't remove the ban however I set the set fzcom(btime) variable.
2. If I want to change my password using "/msg botnick PASS oldpass newpass" command the script response with a notice:
Your password has been set before, you don't need to set it again. Simply type: [/msg botnick auth <password>] to authenticate yourself.

The script is here: https://pastebin.ubuntu.com/24333312/

Can anyone help? Thank You! Smile)

P.s.: I deleted my previous topic regarding fzcommands.tcl.


Last edited by m4s on Sun Jun 18, 2017 12:01 pm; edited 1 time in total
Back to top
View user's profile Send private message
Arnold_X-P
Op


Joined: 30 Oct 2006
Posts: 137
Location: DALnet - Trinidad - Beni - Bolivia

PostPosted: Sat Jun 17, 2017 1:58 pm    Post subject: Re: FZCommands Reply with quote

I am using fzcommand.tcl by Opposing and I have two requests.

1. The eggdrop don't remove the ban however I set the set fzcom(btime) variable.
2. If I want to change my password using "/msg botnick PASS oldpass newpass" command the script response with a notice:
Your password has been set before, you don't need to set it again. Simply type: [/msg botnick auth <password>] to authenticate yourself.

1.- The first point was solved
2.- To change the password is /msg botname pass <password>

tcl
_________________
Very Happy thanks to that they help, that others learn Very Happy
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
m4s
Voice


Joined: 30 Jan 2017
Posts: 23

PostPosted: Sat Jun 17, 2017 2:19 pm    Post subject: Re: FZCommands Reply with quote

Arnold_X-P wrote:
I am using fzcommand.tcl by Opposing and I have two requests.

1. The eggdrop don't remove the ban however I set the set fzcom(btime) variable.
2. If I want to change my password using "/msg botnick PASS oldpass newpass" command the script response with a notice:
Your password has been set before, you don't need to set it again. Simply type: [/msg botnick auth <password>] to authenticate yourself.

1.- The first point was solved
2.- To change the password is /msg botname pass <password>

tcl


First thank you for your work and help! I appreciate it! Smile

The 2nd error still have. After /msg botname pass <password>

I got: [Notice] -Mybot- : Your password has been set before, you don't need to set it again. Simply type: [/msg Mybot auth <password>] to authenticate yourself.

I did a restart but nothing changed.
Back to top
View user's profile Send private message
m4s
Voice


Joined: 30 Jan 2017
Posts: 23

PostPosted: Sun Jun 18, 2017 11:22 am    Post subject: Reply with quote

The 1. point solved by Arnold_X-P. Thanks! Smile
The 2. point also 'solved'.
To avoid the above mentioned error you only comment the following lines in the script:

original line: unbind msg - pass *msg:pass
modified line: #unbind msg - pass *msg:pass

original line: bind msg p|p pass fz:mpass
modified line: #bind msg p|p pass fz:mpass

original section:
Code:

proc fz:mpass {nick uhost hand arg} {
 global botnick fzcom
 if {[set pw [lindex [split $arg] 0]] == ""} {
  puthelp "NOTICE $nick :$fzcom(logo): SYNTAX: /msg $botnick pass <password>"
  return 0
 }
 if {![passwdok $hand ""]} {
  puthelp "NOTICE $nick :$fzcom(logo): Your password has been set before, you don't need to set it again. Simply type: \[/msg $botnick auth <password>\] to authenticate yourself. To change the password use only /msg $botnick pass <password>"
  return 0
 }
 setuser $hand PASS $pw
 puthelp "NOTICE $nick :$fzcom(logo): Your password is now set to: \002$pw\002, remember your password for future use."
 putcmdlog "$fzcom(logo): <<$nick>> !$hand! Set Password."
 return 0
}

modified section:
Code:

#proc fz:mpass {nick uhost hand arg} {
# global botnick fzcom
# if {[set pw [lindex [split $arg] 0]] == ""} {
#  puthelp "NOTICE $nick :$fzcom(logo): SYNTAX: /msg $botnick pass <password>"
# return 0
#[/b] }
# [/b]if {![passwdok $hand ""]} {
#  puthelp "NOTICE $nick :$fzcom(logo): Your password has been set before, you don't #need to set it again. Simply type: \[/msg $botnick auth <password>\] to authenticate #yourself. To change the password use only /msg $botnick pass <password>"
#  return 0
# }
# setuser $hand PASS $pw
# puthelp "NOTICE $nick :$fzcom(logo): Your password is now set to: \002$pw\002, remember your password for future use."
# putcmdlog "$fzcom(logo): <<$nick>> !$hand! Set Password."
#return 0
#}

The !up command did not work needed a modification.
original line:
putserv "$fzcom(chanserv) :[string map [list %chan $chan %botnick $botnick] $fzcom(chanservop)]"

modified lline:
putserv "$fzcom(chanserv) [string map [list %chan $chan %botnick $botnick] $fzcom(chanservop)]"

The working script is here: https://paste.ubuntu.com/24890970/

Can someone add !halfop and !dehalfop commands to this script? 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 -> 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