Mercurial > irccd
diff plugins/roulette/roulette.js @ 847:a23b7b574ed2
irccd: rename [format] section to [templates], closes #1671
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 10 Jul 2019 20:10:00 +0200 |
parents | 06cc2f95f479 |
children | 5e25439fe98d |
line wrap: on
line diff
--- a/plugins/roulette/roulette.js Wed Jul 10 13:39:20 2019 +0200 +++ b/plugins/roulette/roulette.js Wed Jul 10 20:10:00 2019 +0200 @@ -34,7 +34,7 @@ /** * Formats for writing. */ -Plugin.format = { +Plugin.templates = { "lucky": "#{nickname}, you're lucky this time", "shot": "HEADSHOT" }; @@ -110,10 +110,10 @@ game = Gun.create(server, channel); if (game.shot()) { - server.kick(Util.splituser(origin), channel, Util.format(Plugin.format["shot"], kw)); + server.kick(Util.splituser(origin), channel, Util.format(Plugin.templates["shot"], kw)); Gun.remove(game); } else { kw.count = (6 - game.index).toString(); - server.message(channel, Util.format(Plugin.format["lucky"], kw)); + server.message(channel, Util.format(Plugin.templates["lucky"], kw)); } }