aboutsummaryrefslogtreecommitdiff
path: root/plugins/eval
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-07-23 23:55:31 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-07-24 00:01:00 +0200
commit9d0a276f93dd8fe0137c9818779cba6555102b1f (patch)
tree7fc62b6657f0a238065eb056d2cd53ce3cbf122a /plugins/eval
parent4bc674a5592c4176d698cd15a09977f9ce6f7cdb (diff)
downloadxK-9d0a276f93dd8fe0137c9818779cba6555102b1f.tar.gz
xK-9d0a276f93dd8fe0137c9818779cba6555102b1f.tar.xz
xK-9d0a276f93dd8fe0137c9818779cba6555102b1f.zip
Port the `coin' plugin from VitaminA
Diffstat (limited to 'plugins/eval')
-rwxr-xr-xplugins/eval6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/eval b/plugins/eval
index 97c3349..c661df6 100755
--- a/plugins/eval
+++ b/plugins/eval
@@ -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)