Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Propane caveatPatchor.js snippet for a /clear command
Add a /clear command to clear out the chat transcript in Propane.
Place this snippet into:
~Library/Application Support/Propane/unsupported/caveatPatchor.js
function(message) {
var match;
if (match = message.match(/^\/clear\s*$/)) {
return false;
} else {
return message;
chat.speaker.filters = Campfire.Speaker.Filters.toArray();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.