-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[trigger.pl] Add support for fish encrypted channel messages and PRIVMSGs #881
Comments
There is not anything trigger.pl can really do about this. This needs to be fixed in irssi and the encryption modules, as both fish and otr are affected. The issue is that both trigger.pl and fish/otr use |
I guess someone should tag @falsovsky and whoever it is that's maintaining otr(@ailin-nemui?) right now. Also for anyone who's just trying to fix this and get on with their life, you can use the startup file to load everything on startup, in the order that you want. It's janky but it should work. |
The order that the trigger script and fish module are loaded does not appear to matter. I just tried testing it briefly (making sure to close and re-open Irssi after changing the startup order) by messaging myself with encryption enabled and the following test trigger set: /TRIGGER ADD -all -nocase -regexp test -replace Test! |
You need to have the trigger added before fish is loaded. trigger.pl only runs |
With the suggestions in this thread, I was able to get the trigger working as intended. Steps:
Also, make sure to:
Also, make sure to: 3a) Add a script file to load the scripts in the correct order Example (fishTriggerLoadOrder.pl):
Save to ~/.irssi/scripts and add link to script in ~/.irssi/scripts/autorun . Will need to remove trigger.pl from autorun directory if you do it this way. ---------- OR (much easier) ----------- 3b) Edit ~/.irssi/startup as @terminaldweller suggested to load the module and script in the correct order
@terminaldweller you had suggested using the startup file to change the startup order, and - while that does work - I was under the impression that method was deprecated as there is now ./.irssi/scripts/autorun/ . Can anyone confirm? |
You are confusing some things together. The directory you mentioned, Loading commands on startup is what the Since v1.3, there is a setting variable that defines which modules to load which bypassed the module-autoloading-on-startup part of the startup file's use case, but you can still put other irssi commands in your startup file. So, TL;DR, no, the startup file is not deprecated. |
So while this worked briefly, something seemingly caused it to break after a restart. Not sure if this is a viable solution as i cant get it to work again. Not sure why it happened because I had done /trigger save, and /save before restart, and all the scripts and modules are in the correct load order. |
This issue is confirmed with irssi-fish from repository https://download.opensuse.org/repositories/home:/ailin_nemui:/irssi-git-an/xUbuntu_22.04/amd64/ and possibly other FiSH plug-ins
Despite fish encryption/decryption working while the FiSH module is loaded in Irssi, trigger.pl does not currently read FiSH decrypted messages in channel. For example, consider the following message in #irssi on Libera:
> This is a FiSH decrypted message
trigger.pl sees this message in its encrypted format which looks something like this:
+OK YRAtW0aJTWs0FV2ij/pXiSp/X0..k.95Izl1FwABA/LJ0x60
So unless the trigger is set to some variation of the above string, the trigger will never work.
The text was updated successfully, but these errors were encountered: