diff options
author | David Phillips <david@sighup.nz> | 2018-04-10 21:18:53 +1200 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2018-04-10 21:29:11 +1200 |
commit | 9b397609f10d7b61282442ee081e3c1e23430a29 (patch) | |
tree | 58b987399e0c2f62db58c411ad470009173e00f0 /idalius.pl | |
parent | 13be301fab6a21e35b1203ced76e0036b8473e82 (diff) | |
download | idalius-9b397609f10d7b61282442ee081e3c1e23430a29.tar.xz |
Add puppet mode setting
Implements feature #2 on GitHub
Diffstat (limited to 'idalius.pl')
-rwxr-xr-x | idalius.pl | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -284,6 +284,15 @@ sub irc_msg { $irc->yield(privmsg => $nick => "Syntax: action <channel> <action text>"); } } + if ($what =~ /^mode\s/) { + my ($rest) = $what =~ /^mode\s+(.*)?$/; + if ($rest) { + $irc->yield(mode => $rest); + $irc->yield(privmsg => $nick => "Requested."); + } else { + $irc->yield(privmsg => $nick => "Syntax: mode [everything]"); + } + } if ($what =~ /^kick\s/) { my ($channel, $kickee, undef, $reason) = $what =~ /^kick\s+(\S+)\s(\S+)((?:\s)(.*))?$/; if ($channel and $kickee) { |