Skip to content

Having to manually set :flood-penalty for connected networks #276

@tshirts4crime

Description

@tshirts4crime

Circe code in my init:

(setq circe-flood-penalty 0 circe-network-options
      '(("rizon"
     :nick "zdm"
     :user "zdm"
     :realname "zdm"
     :host "irc.rizon.net"
     :port 9999
     :use-tls t
     :flood-penalty 0)))

I'm trying to disable flood-prevention/fakelag, the above settings should work but I'm having to manually set it with (irc-connection-put (circe-server-process) :flood-penalty 0) when I'm connected to the network.

I had an incredibly difficult time actually figuring out how to do this at all but defanor on #emacs-circe was a huge help. I don't really understand the problem but here is some context:

<defanor> <mtp> :server-flood-penalty 0
<defanor> there
<zdm> thank you
<defanor> np
<zdm> heres part of my config: http://ix.io/UMo (im only showing the settings for one net), then just to check i started up a new session of emacs. join a random channel and paste an ascii all at once: http://ix.io/UMn look at the timestamps
<defanor> hrm, and i can't find that server-flood-penalty thing in *.el files
<defanor> oh, there is just :flood-penalty
<defanor> though not sure if setting that will work
<zdm> defanor: Warning (emacs): Unknown option :flood-penalty, ignored
<defanor> oh, looks like the `server-` prefix is required, then
<zdm> defanor: actually, just noticed Warning (emacs): Unknown option :server-flood-, ignored
<defanor> ah. and apparently irc-connection-get doesn't add any prefix
<zdm> yeah, cant find that in any .el filed either
<defanor> perhaps it should be added in the list of valid options, then
<defanor> the warning comes from `circe--server-set-variables'
<defanor> a variable should be bound for that. maybe it'd work to just set circe-flood-penalty globally before setting that
<defanor> that is, to add (setq circe-flood-pentalty 0) before circe-network-options setting
<defanor> zdm: did it work?
<zdm> defanor: was i suppose to remove :server-flood-penalty? because i did
<defanor> setting circe-flood-pentalty globally is supposed to allow you to set the :flood-penalty option
<defanor> if i didn't miss anything in `circe--server-set-variables'
<defanor> (that's the function that didn't allow to set that variable)
<defanor> s/variable/option/
<defanor> but yup, no need in :server-flood-penalty, i think
<defanor> (not sure if you've removed both that and :flood-penalty there)
<defanor> btw, another way to try it is just to set circe-flood-penalty in a channel buffer
<defanor> ah, no, won't work
<defanor> that function checked explicitly for the property in a connection
<zdm> yeah, still getting fakelag
<zdm> http://ix.io/UNa
<defanor> what does it show in (irc-connection-get (circe-server-process) :flood-penalty)?
<defanor> you can also try to set it manually for an active network: (irc-connection-put (circe-server-process) :flood-penalty 0)
<defanor> and there's no warning now, right?
<zdm> defanor: suppose to eval that right? the first one returns nil
<defanor> right
<defanor> there might be a bug after all, though i don't see why it happens. and it's already an issue that it can't be set in settings without setting a dummy variable first

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions