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 

AFP Problem

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
dq
Voice


Joined: 03 Apr 2006
Posts: 32

PostPosted: Sat Apr 29, 2006 8:56 am    Post subject: AFP Problem Reply with quote

With the AllFloodProtection script, It seems when I try to set ANY of the functions to - or 0:0 via the .tcl it ignores it, sure it works when you disable it thru DCC chat but say I wanted a large veriarty of the script disabled but NOT removed how would you do this?

# use .chanset #channel ap:textl <lines>:<seconds> (in DCC, 0:0 to disable)
# Set default rate here:
lappend ap:udefs {ap:textl 5:2}

It says, set default here but if I wanted the default to 0:0 it ignores it.

Sir_Fz care to help Razz


Last edited by dq on Sat Apr 29, 2006 9:07 am; edited 1 time in total
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Apr 29, 2006 9:07 am    Post subject: Reply with quote

This is the dafault setting, which means that it is set on channels where you haven't edited the AP settings yet. For example, if you load the script for the first time, all channels will have these default settings but when you change these settings, the default setting will not apply on them anymore (that's why they're called default and not sticky).

Edit: I assume you know that these settings can be edited via DCC right? (i.e. .chanset #channel ap:textl 5:2)
_________________
Follow me on GitHub

- Opposing

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


Joined: 03 Apr 2006
Posts: 32

PostPosted: Sat Apr 29, 2006 9:10 am    Post subject: Reply with quote

Is there a way to make them sticky, and yes I know you can edit them via DCC, but I don't wanna have to edit each setting for the 1 channel, it would be extreamly handy if I could make it 'sticky' via the script.
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Apr 29, 2006 9:16 am    Post subject: Reply with quote

Well, you don't have to edit each setting for each channel. You can use '*' via .chanset, example:
Quote:
.chanset * ap:textl 5:2

this will change this setting on all channels. And it will never change unless you change it (same as the default settings, they remain the same untill you edit them).
_________________
Follow me on GitHub

- Opposing

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


Joined: 03 Apr 2006
Posts: 32

PostPosted: Sat Apr 29, 2006 9:26 am    Post subject: Reply with quote

Ok, that worked.. but say I wanted EACH setting for the 1 channel turned off apart from 1 or 2?
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Apr 29, 2006 9:29 am    Post subject: Reply with quote

In v4.6 which is coming soon, I have a new command ap:disable which will allow you to disable AP on a channel or on all channels.
_________________
Follow me on GitHub

- Opposing

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


Joined: 03 Apr 2006
Posts: 32

PostPosted: Sat Apr 29, 2006 9:30 am    Post subject: Reply with quote

Ok sounds good, but if I wanted to do it now.. could you briefly explain?
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Apr 29, 2006 9:32 am    Post subject: Reply with quote

Unfortunatly you have to disable each setting manually (i.e. .chanset #channel setting1 0:0 or - for each setting).
_________________
Follow me on GitHub

- Opposing

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


Joined: 03 Apr 2006
Posts: 32

PostPosted: Sat Apr 29, 2006 9:33 am    Post subject: Reply with quote

Ok, once this is done are the settings stored in a file somewhere so I can copy/paste them into another file and change the channel name so I don't have to redo the settings all over again?
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Apr 29, 2006 9:41 am    Post subject: Reply with quote

If you want the same settings on #chan1 to be on #chan2, then use the ap:import DCC command.
Quote:
.ap:import #chan1 #chan2

and all settings on #chan1 will be set on #chan2.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases 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