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 

FZCommands - problems

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


Joined: 30 Jan 2017
Posts: 44

PostPosted: Sat Jun 17, 2017 11:19 am    Post subject: FZCommands - problems 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 Wed May 01, 2019 7:42 am; edited 2 times in total
Back to top
View user's profile Send private message
Arnold_X-P
Op


Joined: 30 Oct 2006
Posts: 179
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
Halfop


Joined: 30 Jan 2017
Posts: 44

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
Halfop


Joined: 30 Jan 2017
Posts: 44

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
m4s
Halfop


Joined: 30 Jan 2017
Posts: 44

PostPosted: Mon Apr 29, 2019 1:43 pm    Post subject: Bot removes the ban Reply with quote

Hi,

I want my bot not to remove the ban after !bankick and I set the set fzcom(btime) "0", because 0 means unlimited (# Set default bantime for ban commands if no bantime was specified (in minutes, 0 means unlimited)Smile.

If the fzcom(btime) is 0 and i use !bankick nick the bot removes the ban immediately.

Can someone have a look pls? Thanks! Smile

Tcl.: https://pastebin.ubuntu.com/24882707/
Back to top
View user's profile Send private message
simo
Master


Joined: 22 Mar 2015
Posts: 315

PostPosted: Mon Apr 29, 2019 2:41 pm    Post subject: Reply with quote

ive tested this tcl on my testnet and it seems to work fine tho it didnt remove ban instantly as u mentioned:



Quote:

(+simo) : !bankick
-TCL-Tester- : SYNTAX: !bankick <nick1/ban1,nick2/ban1,..> [reason] [bantime].
(+simo) : !bankick Obryan,Loan,Gertrude SomeReason
~TCL-Tester Sets Mode on #testing to: +b *!*@RifSytes-04u.091.42.96.IP
(1 User) is Banned Obryan
Obryan Kicked from #testing By ~TCL-Tester <> ( SomeReason )
~TCL-Tester Sets Mode on #testing to: +b *!*@Cloaked-mz1.202.41.87.IP
(1 User) is Banned Loan
Loan Kicked from #testing By ~TCL-Tester <> ( SomeReason )
~TCL-Tester Sets Mode on #testing to: +b *!*@16.50.136.121
(1 User) is Banned Gertrude
Gertrude Kicked from #testing By ~TCL-Tester <> ( SomeReason )
-TCL-Tester- : Bankicked Obryan,Loan,Gertrude from #testing.




yes i removed the logo thing and such for testing
Back to top
View user's profile Send private message
m4s
Halfop


Joined: 30 Jan 2017
Posts: 44

PostPosted: Mon Apr 29, 2019 3:55 pm    Post subject: Reply with quote

simo wrote:
ive tested this tcl on my testnet and it seems to work fine tho it didnt remove ban instantly as u mentioned:



Strange... I checked again and the ban is removed within a minute...
Back to top
View user's profile Send private message
simo
Master


Joined: 22 Mar 2015
Posts: 315

PostPosted: Mon Apr 29, 2019 7:36 pm    Post subject: Reply with quote

ive tested again and yes it seems ur right it does remove ban within a minute

if this is used
and no bantime is provided in the bankick command

SYNTAX: !bankick <nick1/ban1,nick2/ban1,..> [reason] [bantime].

set fzcom(btime) "0"

it doesnt if this is used tho

set fzcom(btime) "30"
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