Skip to content

Instantly share code, notes, and snippets.

@kode54
Created May 22, 2015 07:39
Show Gist options
  • Save kode54/6caedb0030d6880ab0cc to your computer and use it in GitHub Desktop.
Save kode54/6caedb0030d6880ab0cc to your computer and use it in GitHub Desktop.
if ( $to_channel == 1 ){
$output = weechat::string_remove_color($output, "");
weechat::command(weechat::current_buffer(),"/say " . $output);
}elsif ( $to_channel == 0 ){
weechat::print(weechat::current_buffer(),$output);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment