Skip to content

Instantly share code, notes, and snippets.

@michellesanver
Forked from jaytaph/moin.tcl
Last active December 17, 2015 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save michellesanver/5586108 to your computer and use it in GitHub Desktop.
Save michellesanver/5586108 to your computer and use it in GitHub Desktop.
namespace eval moin {
bind pubm -|- * moin::moin
}
proc moin::moin { nick host handle chan text } {
if {[regexp -nocase -- {(^moin|^mornin)} $text]} {
putserv "PRIVMSG $chan :$nick moin"
}
if {[regexp -nocase -- {(^:)} $text]} {
putserv "PRIVMSG $chan ::)"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment