12 # if ($reply =~ /^!vpn (.*) ([-_0-9a-zA-Z]+)$/i) {
15 # if ($staff !~ /$sender/) {
18 # my $password = newpass();
19 # createvpn($password, $newnick);
20 # sendmsg($bot, $sender, "vpn created for $newnick");
22 #Your vpn account has been created! Username: $newnick with password: $password
23 #Our official support channel is #vpn. To connect, please follow these instructions: https://ircnow.org/kb/doku.php?id=vpn:vpn .
25 # sendmsg($bot, $ircnick, $msg);
28 # my ($password, $username) = @_;
29 # `doas sh -c 'echo "user '$username' '$password'" >> /etc/iked.conf'`;
30 # `doas rcctl reload iked`;
33 1; # MUST BE LAST STATEMENT IN FILE