Port the `coin' plugin from VitaminA

This commit is contained in:
2014-07-23 23:55:31 +02:00
parent 4bc674a559
commit 9d0a276f93
2 changed files with 127 additions and 3 deletions

View File

@@ -65,11 +65,11 @@ msg_command == "PRIVMSG" \
ctx = substr(msg_prefix, RSTART, RLENGTH)
if (msg_param[0] ~ /^[#&!+]/)
{
ctxquote = ctx ": "
ctx_quote = ctx ": "
ctx = msg_param[0]
}
else
ctxquote = ""
ctx_quote = ""
if (substr(msg_param[1], 1, length(prefix)) == prefix)
@@ -87,7 +87,7 @@ msg_command == "PRIVMSG" \
function pmrespond (text)
{
print "PRIVMSG " ctx " :" ctxquote text
print "PRIVMSG " ctx " :" ctx_quote text
}
function process_request (input, res, x)