Untested:
http://pastebin.com/m90f1501
EDIT: Debugging a script is simple, just add printf statements to several lines .. examply;
printf("GetPlayerName = %s", PlayerName); under the GetPlayerName function, to check if its receiving the name.
printf("Ingame join message received"); under your message to tell people ingame that a player joined
printf("irc string formatted"); under the format(....) of you irctext
printf("irc string sent"); under your IrcSay();
Every printf statement will be put into your server_log.txt
If any printf is missing, you can find the error easily.
http://pastebin.com/m90f1501
EDIT: Debugging a script is simple, just add printf statements to several lines .. examply;
printf("GetPlayerName = %s", PlayerName); under the GetPlayerName function, to check if its receiving the name.
printf("Ingame join message received"); under your message to tell people ingame that a player joined
printf("irc string formatted"); under the format(....) of you irctext
printf("irc string sent"); under your IrcSay();
Every printf statement will be put into your server_log.txt
If any printf is missing, you can find the error easily.