typedef struct { int Msg; short uid; short LineType; char *Line; // pointer to text char Sound; // 0 for no sound, otherwise sound # char *Cmd; // String of command including ! char OpOnly; // Is the command for ops only? char *HelpFile; // Help Filename for this command int CmdID; // CmdID - The bot core doesn't care about this, } BOTMSG; #### sub set_struct { xxxxx = @_; # <-- ??? $BOTMSG{Msg} = "1"; $BOTMSG{uid} = "1024"; $BOTMSG{LineType} = "100"; $BOTMSG{Line} = "Hello World\n"; $BOTMSG{Cmd} = "/!say"; $BOTMSG{OpOnly} = "yes"; $BOTMSG{HelpFile} = "C\tmp\help\help1.txt"; $BOTMSG{CmdID} = "1234567890"; return %BOTMSG; };