]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
allow showing status number on irc
authormerlijn <mhofstra@gmail.com>
Tue, 29 Jun 2010 16:41:10 +0000 (18:41 +0200)
committermerlijn <mhofstra@gmail.com>
Tue, 29 Jun 2010 16:41:10 +0000 (18:41 +0200)
server/rcon2irc/joinsparts.pl

index 9a7b3b085d0ce96d5aee4c0d9d3b6b4f8e8054cd..686244fb23bd5ac5571e54762eef95bfaeefb683 100644 (file)
@@ -6,6 +6,7 @@
        irc_announce_joins => 1,
        irc_announce_parts => 1,
        irc_show_playerip => 0,
+       irc_show_statusnumber => 0,
        irc_show_mapname => 0,
        irc_show_amount_of_players => 0,
        irc_show_country => 0,
@@ -59,6 +60,7 @@ sub get_player_count
        if ($pj->{irc_announce_joins} && !$store{"playerid_byslot_$slot"}) {
                out irc => 0, "PRIVMSG $config{irc_channel} :\00309+ join\017: $nick\017" . 
                        ($pj->{irc_show_playerip} ? " (\00304$ip\017)" : '') .
+                       ($pj->{irc_show_statusnumber} ? " #\00304$slot\017 " : '') .
                        ($pj->{irc_show_country} && $cn ? " CN: \00304$cn\017" : '') .
                        ($clonenicks ? " Clone of:$clonenicks" : '') .
                        ($pj->{irc_show_mapname} ? " playing on \00304$store{map}\017" : '') .