Commit e27f8078 authored by Andrew Price's avatar Andrew Price

Use the message's timestamp when receiving wiz messages

parent 13710168
Pipeline #373 passed with stage
in 11 minutes and 6 seconds
......@@ -50,7 +50,7 @@ static void force_vtext(ipc_message_t *msg, const char *from, const char *format
static void force_ipc(char *text, char *from);
static void force_rpc(char *text, char *from);
static void force_checkonoff(char *text, char *from);
static void force_wiz(char *text, char *from);
static void force_wiz(ipc_message_t *msg, char *text, char *from);
static void force_chatmode(char *text, unsigned long theirprivs, const char *from);
static void force_status(char *text, char *from);
static void force_channel(char *text, char *from, unsigned long theirprivs);
......@@ -764,7 +764,7 @@ static void accept_pipe_cmd(ipc_message_t *msg, struct user *mesg_user)
force_checkonoff(newbuff, mesg_user->record.name);
break;
case IPC_WIZ:
force_wiz(newbuff, mesg_user->record.name);
force_wiz(msg, newbuff, mesg_user->record.name);
break;
case IPC_CHANNEL:
force_channel(newbuff, mesg_user->record.name, mesg_user->record.chatprivs);
......@@ -855,7 +855,7 @@ static void force_text(ipc_message_t *msg, const char *text, const char *from)
InsertMesg(mesg);
}
static void force_wiz(char *newbuff, char *from)
static void force_wiz(ipc_message_t *msg, char *newbuff, char *from)
{
char tb[MAXTEXTLENGTH];
tb[0]=0;
......@@ -865,7 +865,7 @@ static void force_wiz(char *newbuff, char *from)
time_t t;
struct tm *tt;
t=time(0);
t = msg->head.when;
tt=localtime(&t);
strftime(tb, MAXTEXTLENGTH,"%H:%M ", tt);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment