Port the `coin' plugin from VitaminA
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user