Skip to content

Instantly share code, notes, and snippets.

@tadzik
Created August 26, 2015 17:20
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 tadzik/6c5c615aaff32df0c741 to your computer and use it in GitHub Desktop.
Save tadzik/6c5c615aaff32df0c741 to your computer and use it in GitHub Desktop.
weechat::register("think", "tjs", "0.1", "GPL3", ".o O ( think )", "", "");
weechat::hook_command("think", "Think", "", "", "", "think", "");
sub think {
my (undef, $buffer, @args) = @_;
weechat::command($buffer, ". o O ( " . $args[0] . " )", $channel);
return weechat::WEECHAT_RC_OK;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment