# Set the channel where "Number of words to count: xx" is said on here.
set numberofwords_setting(source) "#chan1"
# Set the channel where "xx" should be repeated to here.
set numberofwords_setting(dest) "#chan2"
bind pubm - "$numberofwords_setting(source) *" pubm:parsexx
proc pubm:parsexx {nick uhost hand chan text} {
global numberofwords_setting
if {[regexp {Number of words to count: ([0-9][0-9])} $text match number]} {
putserv "PRIVMSG $numberofwords_setting(dest) :$number"
}
}
<font size=-1>[ This Message was edited by: Wcc on 2002-02-27 16:21 ]</font>