//irc.h void irc_privmsg (char const *speaker,char const *orig_speker,char const *text,char const *chan); //irc.c void irc_privmsg(char const *speaker, char const *orig_speker, char const *text, char const *chan){ if(!irc_ready) return; ircd_sendf(":%s!%s@oke PRIVMSG %s :%s",speaker,orig_speker,chan,text); } //console.c char orig_speker[HANDLE_BUF]; cpy_speaker(orig_speaker,sizeof(orig_speaker),m); if(chan){ //direct message irc_privmsg(speaker,orig_speker,text,self_handle); }else if(irc_joined){ //broadcast irc_privmsg(speaker,orig_speker,text,irc_chan); }