diff options
author | David Phillips <david@sighup.nz> | 2017-03-07 15:13:50 +1300 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2017-03-07 15:13:50 +1300 |
commit | 9dfe91a70781292bee0ecadf1ac5e13b495309eb (patch) | |
tree | 467e3b3efec49968ecb5e653c663f5f12950028e | |
parent | cd701884e59f533e1ce31dc86cc2a3182d36aa64 (diff) | |
download | idalius-9dfe91a70781292bee0ecadf1ac5e13b495309eb.tar.xz |
Make identifying with services optional to remote control
-rw-r--r-- | bot.conf.example | 1 | ||||
-rwxr-xr-x | saxrobot | 2 | ||||
-rw-r--r-- | sb_config.pm | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/bot.conf.example b/bot.conf.example index 8b43c3a..6fc84f7 100644 --- a/bot.conf.example +++ b/bot.conf.example @@ -6,3 +6,4 @@ channels = #saxtalk,#bot ignore = trumpetbot,abusiveuser password = pleffquiffle admins = snargle!~kleg@glarg.example.com +must_id = 1 @@ -84,7 +84,7 @@ sub irc_public { sub irc_msg { my ($who, $to, $what, $ided) = @_[ARG0, ARG1, ARG2, ARG3]; my $nick = (split /!/, $who)[0]; - if ($ided != 1) { + if ($config{must_id} && $ided != 1) { $irc->yield(privmsg => $nick => "You must identify with services"); return; } diff --git a/sb_config.pm b/sb_config.pm index f4e851e..53ce0e6 100644 --- a/sb_config.pm +++ b/sb_config.pm @@ -8,7 +8,7 @@ use Config::Tiny; sub parse_config { - my @scalar_configs = ('nick', 'username', 'ircname', 'server', 'password'); + my @scalar_configs = ('nick', 'username', 'ircname', 'server', 'password', 'must_id'); my @list_configs = ('channels', 'ignore', 'admins'); my $file = $_[0]; my %built_config; |