Skip to content

Instantly share code, notes, and snippets.

@tomoe-mami
Created June 13, 2015 07:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomoe-mami/e70213c5d1d159df7309 to your computer and use it in GitHub Desktop.
Save tomoe-mami/e70213c5d1d159df7309 to your computer and use it in GitHub Desktop.
Trigger for checking if hook_process returned corrupted data
/trigger add check_gist timer 300000;0;0
/trigger set check_gist command /exec -hsignal check_gist url:https://gist.githubusercontent.com/anonymous/516b08a56c6b8c1c8ff5/raw
/trigger add check_gist_cb hsignal check_gist
/trigger set check_gist_cb conditions ${rc} == 0 && ${out} != AAAAAAAAAA
/trigger set check_gist_cb command /print -error -tags notify_highlight ERROR! exec returns different content!;/print -error expected string: AAAAAAAAAA;/print -error returned string: ${out};/print -error returned string in hex:;/exec -name hex -stdin -norc -nosh xxd -g 1;/exec -inclose hex ${out}
@Zarthus
Copy link

Zarthus commented Jun 13, 2015

running it on both:

weechat     │ WeeChat 1.3-dev (git: v1.2-24-g799b0ca) [compiled on Jun  9 2015 16:24:14]
weechat     | WeeChat 1.0.1 [compiled on Sep 28 2014 16:29:20]

Just posting this comment here so I have a rough timestamp of when I started (and so I can reference back to it).
10:23 AM +0200 @ 2015-06-13

@tomoe-mami
Copy link
Author

24 hours passed. Still no corruption?

@Zarthus
Copy link

Zarthus commented Jul 24, 2015

Sorry I never got notified of this reply. @tomoe-mami

(15:39:04) <Zarthus> Does anyone still have logs of the person who asked to run a timed trigger and see the output?
(15:39:30) <Zarthus> I don't really remember who it was or what it was meant for, but it's been running for a month now. https://gist.github.com/Zarthus/7f8905d11869568ef995 /cc FlashCode
(15:39:38) <Zarthus> not sure if it is useful or not.

@Zarthus
Copy link

Zarthus commented Jul 24, 2015

I suspect this is due to a gist error though, not weechat.

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