cnaude / PurpleIRC

Minecraft Bukkit plugin that provides an IRC bridge. This repo has been archived. Please see https://github.com/cnaude/PurpleIRC-spigot for the latest and greatest PurpleIRC code for Bukkit servers (Spigot, Paper etc...)
20 stars 9 forks source link

add irc nick to ticket #102

Closed ghost closed 9 years ago

ghost commented 9 years ago

from irc I have added a @modreq command for reportrts but wondering if i can add in the users nickname to the ticket ie. %nick% in the bot yaml? or is it possible to add in the nick instead of having it report that the ticket was opened by "CONSOLE"?

http://puu.sh/f2s9D/51797651c3.png

  modreq:
    modes: qho
    private: 'false'
    game_command: ticket modreq %ARGS%
    private_listen: 'false'
    ctcp: 'false'
    channel_listen: 'true'
    perm: ''
cnaude commented 9 years ago

You can now set a sender option for each command. It will default to CONSOLE. You can set it to %NICK% to replace the sender with IRC user's nick. http://h.cnaude.org:8081/job/PurpleIRC/242/ http://h.cnaude.org:8081/job/PurpleIRC-spigot/14/

modreq:
    modes: qho
    private: 'false'
    game_command: ticket modreq %ARGS%
    private_listen: 'false'
    ctcp: 'false'
    channel_listen: 'true'
    perm: ''
    sender: %NICK%
ghost commented 9 years ago

brilliant now i just got to get it to work with the latest spigot.