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 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