1 | #! perl |
1 | #! perl # depends=irc |
2 | #CONVERSION: PARTIAL |
2 | #CONVERSION: PARTIAL |
3 | |
3 | |
4 | # implement a replacement for the built-in say/chat/shout/tell/reply commands |
4 | # implement a replacement for the built-in say/chat/shout/tell/reply commands |
5 | # adds ignore/unignore functionality |
5 | # adds ignore/unignore functionality |
6 | |
6 | |
7 | use NPC_Dialogue; |
7 | use NPC_Dialogue; |
8 | use POSIX (); # for strftime only |
8 | use POSIX (); # for strftime only |
|
|
9 | |
|
|
10 | our $SAY_CHANNEL = { |
|
|
11 | id => "say", |
|
|
12 | title => "Map", |
|
|
13 | reply => "say ", |
|
|
14 | tooltip => "Things said to and replied from npcs near you and other players on the same map only.", |
|
|
15 | }; |
|
|
16 | |
|
|
17 | our $CHAT_CHANNEL = { |
|
|
18 | id => "chat", |
|
|
19 | title => "Chat", |
|
|
20 | reply => "chat ", |
|
|
21 | tooltip => "Player chat and shouts, global to the server.", |
|
|
22 | }; |
9 | |
23 | |
10 | sub clean_timeouts($) { |
24 | sub clean_timeouts($) { |
11 | my ($player) = @_; |
25 | my ($player) = @_; |
12 | my $NOW = time; |
26 | my $NOW = time; |
13 | |
27 | |
… | |
… | |
22 | } |
36 | } |
23 | } |
37 | } |
24 | } |
38 | } |
25 | } |
39 | } |
26 | |
40 | |
|
|
41 | # send_irc ($format, @args, $msg) |
|
|
42 | # make sure the last argument is the message! |
|
|
43 | sub send_irc { |
|
|
44 | my ($format, @args) = @_; |
|
|
45 | my $msg = pop @args; |
|
|
46 | for (split /\n/, $msg) { |
|
|
47 | ext::irc::do_notice (sprintf $format, @args, $_) |
|
|
48 | } |
|
|
49 | } |
|
|
50 | |
27 | cf::player->attach ( |
51 | cf::player->attach ( |
28 | prio => -1000, |
52 | prio => -1000, |
29 | on_login => sub { |
53 | on_login => sub { |
30 | my ($pl) = @_; |
54 | my ($pl) = @_; |
31 | |
55 | |
32 | clean_timeouts $pl->ob; |
56 | clean_timeouts $pl->ob; |
|
|
57 | $pl->ns->send_msg ($SAY_CHANNEL); |
|
|
58 | $pl->ns->send_msg ($CHAT_CHANNEL); |
33 | }, |
59 | }, |
34 | ); |
60 | ); |
35 | |
61 | |
36 | cf::register_command listen => sub { |
62 | cf::register_command listen => sub { |
37 | my ($pl, $msg) = @_; |
63 | my ($pl, $msg) = @_; |
38 | my $player = cf::player::find_active $pl->name; |
64 | my $player = cf::player::find_active $pl->name; |
39 | |
65 | |
40 | if ($msg ne "") { |
66 | if ($msg ne "") { |
|
|
67 | $msg = 10 if $msg > 10; |
|
|
68 | |
41 | my $prev_listen = $player->listening; |
69 | my $prev_listen = $player->listening; |
42 | $player->listening ($msg); |
70 | $player->listening ($msg); |
43 | if ($prev_listen == $player->listening) { |
71 | if ($prev_listen == $player->listening) { |
44 | $pl->message ("Your verbose level stayed $prev_listen.", cf::NDI_UNIQUE); |
72 | $pl->message ("Your verbose level stays at $prev_listen.", cf::NDI_UNIQUE); |
45 | } else { |
73 | } else { |
46 | $pl->message ("Your verbose level is now " . $player->listening . ". (previously: $prev_listen)", cf::NDI_UNIQUE); |
74 | $pl->message ("Your verbose level is now " . $player->listening . ". (previously: $prev_listen)", cf::NDI_UNIQUE); |
47 | } |
75 | } |
48 | } else { |
76 | } else { |
49 | $pl->message ("Your verbose level is " . $player->listening . ".", cf::NDI_UNIQUE); |
77 | $pl->message ("Your verbose level is " . $player->listening . ".", cf::NDI_UNIQUE); |
… | |
… | |
52 | |
80 | |
53 | cf::register_command cointoss => sub { |
81 | cf::register_command cointoss => sub { |
54 | my ($pl, $msg) = @_; |
82 | my ($pl, $msg) = @_; |
55 | |
83 | |
56 | my $name = $pl->name; |
84 | my $name = $pl->name; |
|
|
85 | my $coin = int rand 2 ? "Heads" : "Tails"; |
57 | |
86 | |
58 | if (int rand 2) { |
|
|
59 | for my $other ( grep { $pl->on_same_map_as ($_->ob) } cf::player::list ) { |
87 | for my $other ( grep { $pl->on_same_map_as ($_->ob) } cf::player::list ) { |
60 | next |
88 | next |
61 | if $other->ob == $pl; |
89 | if $other->ob == $pl; |
62 | $other->ob->message ("$name flips a coin.... Heads!", cf::NDI_GREY | cf::NDI_UNIQUE); |
|
|
63 | } |
|
|
64 | |
|
|
65 | $pl->message ("You flip a coin.... Heads!", cf::NDI_GREY | cf::NDI_UNIQUE); |
|
|
66 | } else { |
|
|
67 | for my $other ( grep { $pl->on_same_map_as ($_->ob) } cf::player::list ) { |
|
|
68 | next |
|
|
69 | if $other->ob == $pl; |
|
|
70 | $other->ob->message ("$name flips a coin.... Tails!", cf::NDI_GREY | cf::NDI_UNIQUE); |
90 | $other->ob->message ("$name flips a coin.... $coin!", cf::NDI_GREY | cf::NDI_UNIQUE); |
71 | } |
|
|
72 | |
|
|
73 | $pl->message ("You flip a coin.... Tails!", cf::NDI_GREY | cf::NDI_UNIQUE); |
|
|
74 | } |
91 | } |
|
|
92 | |
|
|
93 | $pl->message ("You flip a coin.... $coin!", cf::NDI_GREY | cf::NDI_UNIQUE); |
75 | }; |
94 | }; |
76 | |
95 | |
77 | cf::register_command orcknuckle => sub { |
96 | cf::register_command orcknuckle => sub { |
78 | my ($pl, $msg) = @_; |
97 | my ($pl, $msg) = @_; |
79 | my @orcknuckle = ("none", "beholder", "ghost", "knight", "princess", "dragon", "orc"); |
98 | my @orcknuckle = ("none", "beholder", "ghost", "knight", "princess", "dragon", "orc"); |
… | |
… | |
748 | cf::register_command me => sub { |
767 | cf::register_command me => sub { |
749 | my ($pl, $msg) = @_; |
768 | my ($pl, $msg) = @_; |
750 | |
769 | |
751 | my $name = $pl->name; |
770 | my $name = $pl->name; |
752 | |
771 | |
753 | $_->ob->message ("* $name $msg", cf::NDI_GREY | cf::NDI_UNIQUE) |
772 | $_->ns->send_msg ($SAY_CHANNEL => "* $name $msg", cf::NDI_GREY, $_ == $pl ? (reply => 1) : ()) |
754 | for grep $pl->on_same_map_as ($_->ob), cf::player::list; |
773 | for grep $pl->on_same_map_as ($_->ob), cf::player::list; |
755 | }; |
774 | }; |
756 | |
775 | |
757 | cf::register_command say => sub { |
776 | cf::register_command say => sub { |
758 | my ($pl, $msg) = @_; |
777 | my ($ob, $msg) = @_; |
759 | |
778 | |
760 | utf8::decode $msg; |
779 | utf8::decode $msg; |
761 | |
780 | |
762 | return if $pl->contr->invoke (cf::EVENT_PLAYER_SAY, $msg); |
781 | return if $ob->contr->invoke (cf::EVENT_PLAYER_SAY, $msg); |
763 | |
782 | |
764 | if ($msg) { |
783 | if ($msg) { |
765 | my $name = $pl->name; |
784 | my $name = $ob->name; |
766 | |
|
|
767 | utf8::encode $msg; # ->message not yet utf8-ified |
|
|
768 | $_->ob->message ("$name says: $msg", cf::NDI_GREY | cf::NDI_UNIQUE) |
|
|
769 | for grep $pl->on_same_map_as ($_->ob), cf::player::list; |
785 | my @plonmap = grep $ob->on_same_map_as ($_->ob), cf::player::list; |
770 | utf8::decode $msg; |
786 | |
|
|
787 | $_->ns->send_msg ($SAY_CHANNEL => "$name says: $msg", cf::NDI_GREY, $_ == $ob ? (reply => 1) : ()) |
|
|
788 | for @plonmap; |
771 | |
789 | |
772 | # npcs, magic_ears etc. |
790 | # npcs, magic_ears etc. |
773 | # first find all objects and theirt-level inventories |
791 | # first find all objects and their first-level inventories |
774 | # within a 5x5 square # that have something resembling |
792 | # within a 5x5 square that have something resembling |
775 | # dialogue or support on_say. |
793 | # dialogue or support on_say. |
776 | my ($map, $x, $y) = ($pl->map, $pl->x - 2, $pl->y - 2); |
794 | my ($map, $x, $y) = ($ob->map, $ob->x - 2, $ob->y - 2); |
777 | |
795 | |
778 | for my $npc ( |
796 | for my $npc ( |
779 | grep +($_->invoke (cf::EVENT_OBJECT_SAY, $pl->contr, $msg) && return) || NPC_Dialogue::has_dialogue $_, |
797 | grep +($_->invoke (cf::EVENT_OBJECT_SAY, $ob->contr, $msg) && return) || NPC_Dialogue::has_dialogue $_, |
780 | map +($_, $_->inv), |
798 | map +($_, $_->inv), |
781 | grep $_, |
799 | grep $_, |
782 | map $map->at ($x + $_ % 5, $y + (int $_ / 5)), |
800 | map $map->at ($x + $_ % 5, $y + (int $_ / 5)), |
783 | 0..24 |
801 | 0..24 |
784 | ) { |
802 | ) { |
785 | # if some listener teleported us somewhere else, stop right here |
803 | # if some listener teleported us somewhere else, stop right here |
786 | last unless $map->path == $pl->map->path; |
804 | last unless $map->path == $ob->map->path; |
787 | |
805 | |
788 | my $dialog = new NPC_Dialogue ob => $pl, npc => $npc; |
806 | my $dialog = new NPC_Dialogue pl => $ob->contr, npc => $npc; |
789 | my ($reply, @kw) = $dialog->tell ($msg); |
807 | my ($reply, @kw) = $dialog->tell ($msg); |
790 | |
808 | |
791 | if (defined $reply) { |
809 | if (defined $reply) { |
792 | if ($npc->type == cf::MAGIC_EAR) { |
810 | if ($npc->type == cf::MAGIC_EAR) { |
793 | if (length $reply) { |
811 | if (length $reply) { |
794 | $_->ob->message ($reply, cf::NDI_BROWN | cf::NDI_UNIQUE) |
812 | $_->ns->send_msg ($SAY_CHANNEL => $reply, cf::NDI_BROWN) |
795 | for grep $pl->on_same_map_as ($_->ob), cf::player::list; |
813 | for @plonmap; |
796 | } |
814 | } |
797 | $npc->use_trigger; |
815 | $npc->use_trigger; |
798 | } else { |
816 | } else { |
799 | if (length $reply) { |
817 | if (length $reply) { |
800 | $_->ob->message ($npc->name . " says: $reply", cf::NDI_BROWN | cf::NDI_UNIQUE) |
818 | $_->ns->send_msg ($SAY_CHANNEL => $npc->name . " says: $reply", cf::NDI_BROWN) |
801 | for grep $pl->on_same_map_as ($_->ob), cf::player::list; |
819 | for @plonmap; |
802 | } |
820 | } |
803 | } |
821 | } |
804 | } |
822 | } |
805 | |
823 | |
806 | if (@kw) { |
824 | if (@kw) { |
807 | $_->ob->message ("[further topics: " . (join ", ", @kw) . "]", cf::NDI_BROWN | cf::NDI_UNIQUE) |
825 | $_->ns->send_msg ($SAY_CHANNEL => "[further topics: " . (join ", ", @kw) . "]", cf::NDI_BROWN) |
808 | for grep $pl->on_same_map_as ($_->ob), cf::player::list; |
826 | for @plonmap; |
809 | } |
827 | } |
810 | } |
828 | } |
811 | |
829 | |
812 | } else { |
830 | } else { |
813 | $pl->message ("What do you want to say?", cf::NDI_UNIQUE); |
831 | $ob->contr->send_msg ($SAY_CHANNEL => "What do you want to say?", 0, reply => 1); |
814 | } |
832 | } |
815 | }; |
833 | }; |
816 | |
834 | |
817 | cf::register_command chat => sub { |
835 | cf::register_command chat => sub { |
818 | my ($pl, $msg) = @_; |
836 | my ($pl, $msg) = @_; |
… | |
… | |
823 | |
841 | |
824 | if ($msg) { |
842 | if ($msg) { |
825 | my $name = $pl->name; |
843 | my $name = $pl->name; |
826 | my $NOW = time; |
844 | my $NOW = time; |
827 | |
845 | |
828 | utf8::encode $msg; # ->message not yet utf8-ified |
|
|
829 | cf::LOG cf::llevDebug, sprintf "QBERT [%s] %s\n", $name, $msg; |
846 | cf::LOG cf::llevDebug, sprintf "QBERT [%s] %s\n", $name, $msg; |
830 | ext::schmorp_irc::do_notice (sprintf "[%s] %s", $name, $msg); |
847 | send_irc ("[%s] %s", $name, $msg); |
831 | |
848 | |
832 | $_->ob->message ("$name chats: $msg", cf::NDI_BLUE) |
849 | $_->ns->send_msg ($CHAT_CHANNEL => "$name chats: $msg", cf::NDI_BLUE, $_ == $pl ? (reply => 1) : ()) |
833 | for grep { $_->ob->{ext_ignore_shout}{$name} < $NOW && $_->listening >= 10 } cf::player::list; |
850 | for grep { $_->ob->{ext_ignore_shout}{$name} < $NOW && $_->listening >= 10 } cf::player::list; |
834 | |
851 | |
835 | } else { |
852 | } else { |
836 | $pl->message ("Chat what?", cf::NDI_UNIQUE); |
853 | $pl->ns->send_msg ($CHAT_CHANNEL => "Chat what?"); |
837 | } |
854 | } |
838 | }; |
855 | }; |
839 | |
856 | |
840 | cf::register_command shout => sub { |
857 | cf::register_command shout => sub { |
841 | my ($pl, $msg) = @_; |
858 | my ($pl, $msg) = @_; |
… | |
… | |
847 | if ($msg) { |
864 | if ($msg) { |
848 | my $NOW = time; |
865 | my $NOW = time; |
849 | my $name = $pl->name; |
866 | my $name = $pl->name; |
850 | |
867 | |
851 | cf::LOG cf::llevDebug, sprintf "QBERT {%s} %s\n", $name, $msg; |
868 | cf::LOG cf::llevDebug, sprintf "QBERT {%s} %s\n", $name, $msg; |
852 | ext::schmorp_irc::do_notice (sprintf "\007\0034{%s} %s\n", $name, $msg); |
869 | send_irc ("\007\0034{%s} %s\n", $name, $msg); |
853 | |
870 | |
854 | utf8::encode $msg; # ->message not yet utf8-ified |
871 | $_->ns->send_msg ($CHAT_CHANNEL => "$name shouts: $msg", cf::NDI_BLUE, $_ == $pl ? (reply => 1) : ()) |
855 | $_->ob->message ("$name shouts: $msg", cf::NDI_RED) |
|
|
856 | for grep { $_->ob->{ext_ignore_shout}{$name} < $NOW && $_->listening >= 2 } cf::player::list; |
872 | for grep { $_->ob->{ext_ignore_shout}{$name} < $NOW && $_->listening >= 2 } cf::player::list; |
857 | |
873 | |
858 | } else { |
874 | } else { |
859 | $pl->message ("Shout what?", cf::NDI_UNIQUE); |
875 | $pl->ns->send_msg ($CHAT_CHANNEL => "Shout what?"); |
860 | } |
876 | } |
861 | }; |
877 | }; |
862 | |
878 | |
863 | cf::register_command tell => sub { |
879 | cf::register_command tell => sub { |
864 | my ($pl, $args) = @_; |
880 | my ($ob, $args) = @_; |
865 | my ($target, $msg) = split /\s+/, $args, 2; |
881 | my ($target, $msg) = split /\s+/, $args, 2; |
866 | |
882 | |
867 | utf8::decode $msg; |
883 | utf8::decode $msg; |
868 | |
884 | |
|
|
885 | my $pl = $ob->contr; |
|
|
886 | my $ns = $pl->ns |
|
|
887 | or return; |
|
|
888 | my $name = $ob->name; |
|
|
889 | |
869 | return if $pl->contr->invoke (cf::EVENT_PLAYER_TELL, $target, $msg); |
890 | return if $pl->invoke (cf::EVENT_PLAYER_TELL, $target, $msg); |
870 | |
891 | |
871 | my $name = $pl->name; |
892 | my $pl_channel = { |
|
|
893 | id => "tell-$target", |
|
|
894 | title => "$target", |
|
|
895 | reply => "tell $target ", |
|
|
896 | tooltip => "Private messages from/to $target", |
|
|
897 | }; |
872 | |
898 | |
873 | if ($target =~ /irc\//) { |
899 | if ($target =~ /irc\//) { |
874 | my (undef, $nick) = split /\//, $target, 2; |
900 | my (undef, $nick) = split /\//, $target, 2; |
875 | $pl->message ("You tell $target: $args"); |
901 | $ns->send_msg ($pl_channel => "You tell $target: $args", reply => 1); |
876 | ext::schmorp_irc::do_notice (sprintf "(%s) %s: %s\n", $name, $nick, $msg); |
902 | send_irc ("(%s) %s: %s\n", $name, $nick, $msg); |
877 | } elsif (my $other = cf::player::find_active $target) { |
903 | } elsif (my $other = cf::player::find_active $target) { |
|
|
904 | my $other_channel = { |
|
|
905 | id => "tell-$name", |
|
|
906 | title => "$name", |
|
|
907 | reply => "tell $name ", |
|
|
908 | tooltip => "Private messages from/to $name", |
|
|
909 | }; |
878 | |
910 | |
879 | if ($msg) { |
911 | if ($msg) { |
880 | if ($target eq $name) { |
912 | if ($target eq $name) { |
881 | $pl->message ("You are talking to yourself, you freak!", cf::NDI_UNIQUE); |
913 | $ns->send_msg ($pl_channel => "You are talking to yourself, you freak!", reply => 1); |
882 | } elsif ($other->ob->{ext_ignore_tell}{$name} >= time) { |
914 | } elsif ($other->ob->{ext_ignore_tell}{$name} >= time) { |
883 | $pl->message ("$target ignores what you say. Give up on it.", cf::NDI_UNIQUE); |
915 | $ns->send_msg ($pl_channel => "$target ignores what you say. Give up on it.", reply => 1); |
884 | } else { |
916 | } else { |
885 | return if $other->invoke (cf::EVENT_PLAYER_TOLD, $pl->contr, $msg); |
917 | return if $other->invoke (cf::EVENT_PLAYER_TOLD, $pl->contr, $msg); |
886 | utf8::encode $msg; # ->message not yet utf8-ified |
|
|
887 | cf::LOG cf::llevDebug, sprintf "TELL [%s>%s] %s\n", $name, $target, $msg; |
918 | cf::LOG cf::llevDebug, sprintf "TELL [%s>%s] %s\n", $name, $target, $msg; |
888 | |
919 | |
889 | $pl->message ("You tell $target: $msg"); |
920 | $ns->send_msg ($pl_channel => "You tell $target: $msg", reply => 1); |
890 | $other->ob->message ("$name tells you: $msg"); |
921 | $other->ns->send_msg ($other_channel => "$name tells you: $msg"); |
891 | $other->ob->{ext_last_tell} = $name; |
|
|
892 | } |
922 | } |
893 | } else { |
923 | } else { |
894 | $pl->message ("What do you want to tell $target?", cf::NDI_UNIQUE); |
924 | $ns->send_msg ($pl_channel => "What do you want to tell $target?"); |
895 | } |
925 | } |
896 | |
926 | |
897 | } else { |
927 | } else { |
898 | $pl->message ("No such player. Your message: $msg", cf::NDI_UNIQUE); |
928 | $ns->send_msg ($pl_channel => "No such player. Your message: $msg"); |
899 | } |
|
|
900 | }; |
|
|
901 | |
|
|
902 | cf::register_command reply => sub { |
|
|
903 | my ($pl, $args) = @_; |
|
|
904 | my $name = $pl->name; |
|
|
905 | |
|
|
906 | utf8::decode $args; |
|
|
907 | |
|
|
908 | return if $pl->contr->invoke (cf::EVENT_PLAYER_TELL, $pl->{ext_last_tell}, $args); |
|
|
909 | |
|
|
910 | if ($pl->{ext_last_tell} =~ /irc\//) { |
|
|
911 | my (undef, $nick) = split /\//, $pl->{ext_last_tell}, 2; |
|
|
912 | $pl->message ("You tell " . $pl->{ext_last_tell} . ": $args"); |
|
|
913 | ext::schmorp_irc::do_notice (sprintf "(%s) %s: %s\n", $name, $nick, $args); |
|
|
914 | } elsif (my $other = cf::player::find_active $pl->{ext_last_tell}) { |
|
|
915 | |
|
|
916 | if ($args) { |
|
|
917 | $other->ob->{ext_ignore_tell}{$name} >= time |
|
|
918 | or delete $other->ob->{ext_ignore_tell}{$name}; |
|
|
919 | |
|
|
920 | if ($other->ob->{ext_ignore_tell}{$name} < time) { |
|
|
921 | utf8::encode $args; # ->message not yet utf8-ified |
|
|
922 | cf::LOG cf::llevDebug, sprintf "TELL [%s>%s] %s\n", $name, $other->ob->name, $args; |
|
|
923 | |
|
|
924 | $pl->message ("You tell " . $other->ob->name . ": $args"); |
|
|
925 | $other->ob->message ("$name tells you: $args"); |
|
|
926 | $pl->{ext_last_tell} = $other->ob->name; |
|
|
927 | } else { |
|
|
928 | $pl->message ($other->ob->name . " ignores what you say. Give up on it.", cf::NDI_UNIQUE); |
|
|
929 | } |
|
|
930 | } else { |
|
|
931 | $pl->message ("What do you want to tell ".$other->ob->name."?", cf::NDI_UNIQUE); |
|
|
932 | } |
|
|
933 | |
|
|
934 | } else { |
|
|
935 | $pl->message ("Can't reply, player left. Your message: $args".$pl->{ext_last_tell}, cf::NDI_UNIQUE); |
|
|
936 | } |
929 | } |
937 | }; |
930 | }; |
938 | |
931 | |
939 | cf::register_command ignore => sub { |
932 | cf::register_command ignore => sub { |
940 | my ($pl, $args) = @_; |
933 | my ($pl, $args) = @_; |
… | |
… | |
1017 | $pl->message ("No such player or ambiguous name: $target", cf::NDI_UNIQUE); |
1010 | $pl->message ("No such player or ambiguous name: $target", cf::NDI_UNIQUE); |
1018 | } |
1011 | } |
1019 | } |
1012 | } |
1020 | }; |
1013 | }; |
1021 | |
1014 | |
1022 | cf::register_command seen => sub { |
|
|
1023 | my ($pl, $args) = @_; |
|
|
1024 | |
|
|
1025 | if (my ($login) = $args =~ /(\S+)/) { |
|
|
1026 | if ($login eq $pl->name) { |
|
|
1027 | $pl->message ("Very funny, $login. Ha. Ha.", cf::NDI_UNIQUE); |
|
|
1028 | } elsif (cf::player::find_active $login) { |
|
|
1029 | $pl->message ("$login is right here on this server!", cf::NDI_UNIQUE); |
|
|
1030 | } elsif (cf::player::exists $login |
|
|
1031 | and stat sprintf "%s/%s/%s/%s.pl", cf::localdir, cf::playerdir, ($login) x 2) { |
|
|
1032 | my $time = (stat _)[9]; |
|
|
1033 | |
|
|
1034 | $pl->message ("$login was last seen here " |
|
|
1035 | . (POSIX::strftime "%Y-%m-%d %H:%M:%S +0000", gmtime $time) |
|
|
1036 | . " which was " . (int +(time - $time) / 3600) . " hours ago.", cf::NDI_UNIQUE); |
|
|
1037 | } else { |
|
|
1038 | $pl->message ("No player named $login is known to me.", cf::NDI_UNIQUE); |
|
|
1039 | } |
|
|
1040 | } else { |
|
|
1041 | $pl->message ("Usage: seen <player>", cf::NDI_UNIQUE); |
|
|
1042 | } |
|
|
1043 | }; |
|
|
1044 | |
|
|