I plan to release this to the public, I just want to make sure it's okay before I do so. (No mem leaks, etc)
In act_comm.c at the top:
In talk_channel at the top:
In the talk_channel CONTACT case:
That's it. Everthing else is just stuff to display it etc. (This is a channel history)
I'm just not totally sure if I should have used str_dup or STRFREE somewhere else, or the sort.
In act_comm.c at the top:
char * contact1;
char * contact2;
char * contact3;
char * contact4;
char * contact5;
char * contact6;
char * contact7;
char * contact8;In talk_channel at the top:
char histbuf[MAX_STRING_LENGTH];In the talk_channel CONTACT case:
sprintf( buf, "&R[&O%s&R] &W$n &w- '&Y$t%s&w'&D", verb, ANSI_RESET );
strtime = ctime( ¤t_time );
strtime[strlen(strtime)-1] = '\0';
sprintf(histbuf, "&g(%s) &W%s: &Y%s&D\n\r", strtime, ch->name, argument);
contact8 = contact7;
contact7 = contact6;
contact6 = contact5;
contact5 = contact4;
contact4 = contact3;
contact3 = contact2;
contact2 = contact1;
contact1 = str_dup(histbuf);
break;
That's it. Everthing else is just stuff to display it etc. (This is a channel history)
I'm just not totally sure if I should have used str_dup or STRFREE somewhere else, or the sort.