Skip to content
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] on/off switch #546

Open
kli0rf opened this issue Nov 2, 2018 · 2 comments
Open

[trigger.pl] on/off switch #546

kli0rf opened this issue Nov 2, 2018 · 2 comments

Comments

@kli0rf
Copy link

kli0rf commented Nov 2, 2018

Guys, could someone add on and off functionality to trigger.pl, so it's possible to disable the script by calling a trigger from itself? I've been using "-command 'script unload trigger'" for that, but it's not possible anymore with the newer versions of perl, it crashes the whole irssi with segfault. So the trigger on/off [enable/disable] switch would be priceless.

@vague666
Copy link
Member

vague666 commented Nov 2, 2018

@coekie , would it be possible? Or can you suggest a workaround for kliorf?

@bw1
Copy link
Member

bw1 commented Dec 17, 2018

delete one trigger

/trigger add -publics -command "/echo hallo" -name test
/trigger add -publics -pattern off -command "/trigger delete test"

on and off

/trigger add -publics -pattern on -command "/trigger move last 5" -last
/trigger add -publics -pattern off -command "/trigger move last 2" -last
/trigger add -publics -command "/echo hallo"
/trigger add -publics -command "/echo hallo2"
/trigger add -all -last -name last

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants