Compare commits

..

2 Commits

Author SHA1 Message Date
Sunblade d54a896119 Update xenia.pl 2025-10-19 16:00:50 +00:00
Sunblade db329dfa42 Update xenia.pl 2025-10-19 15:15:06 +00:00
1 changed files with 37 additions and 37 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/perl use strict;
use vars qw($VERSION %IRSSI);
use Irssi;
$VERSION = '1.00';
%IRSSI = (
authors => 'Sunblade',
@ -15,7 +15,7 @@ sub event_privmsg {
# $data = "nick/#channel :text"
my ($server, $data, $nick, $address) = @_;
my ($target, $text) = split(/ :/, $data, 2);
if ($target == '#Enigma') {
if ($target eq '#Enigma') {
if ($text eq '!try') {
try($nick, $target, $data, $server, $text);
}
@ -26,10 +26,10 @@ sub try {
my ($nick, $target, $data, $server, $text) = @_;
my $tr = int(rand(1000000));
if ($tr != 738056) {
$server->command("MSG $target $nick you have failed to find the awarded ticket - r: $tr");
$server->command("MSG $target $nick you have failed to find the awarded ticket - Found: #$tr");
}
else {
$server->command("MSG $target $nick you have FOUND the awarded ticket...UNBELIEVABLE!");
$server->command("MSG $target $nick you have FOUND the awarded ticket #$tr ... UNBELIEVABLE!");
}
# Irssi::print("Debug: $target $nick - $data / $server / $text");
}