mirror of
https://github.com/osmarks/ngircd.git
synced 2024-12-14 19:00:27 +00:00
New numeric 329: get channel creation time on "MODE #chan" commands
This commit is contained in:
parent
9bc5d565bb
commit
7321be2ccd
@ -294,8 +294,17 @@ Channel_Mode_Answer_Request(CLIENT *Origin, CHANNEL *Channel)
|
|||||||
if (the_args[0])
|
if (the_args[0])
|
||||||
strlcat(the_modes, the_args, sizeof(the_modes));
|
strlcat(the_modes, the_args, sizeof(the_modes));
|
||||||
|
|
||||||
return IRC_WriteStrClient(Origin, RPL_CHANNELMODEIS_MSG,
|
if (!IRC_WriteStrClient(Origin, RPL_CHANNELMODEIS_MSG,
|
||||||
Client_ID(Origin), Channel_Name(Channel), the_modes);
|
Client_ID(Origin), Channel_Name(Channel),
|
||||||
|
the_modes))
|
||||||
|
return DISCONNECTED;
|
||||||
|
#ifndef STRICT_RFC
|
||||||
|
if (!IRC_WriteStrClient(Origin, RPL_CREATIONTIME_MSG,
|
||||||
|
Client_ID(Origin), Channel_Name(Channel),
|
||||||
|
Channel_CreationTime(Channel)))
|
||||||
|
return DISCONNECTED;
|
||||||
|
#endif
|
||||||
|
return CONNECTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -65,6 +65,7 @@
|
|||||||
#define RPL_LIST_MSG "322 %s %s %ld :%s"
|
#define RPL_LIST_MSG "322 %s %s %ld :%s"
|
||||||
#define RPL_LISTEND_MSG "323 %s :End of LIST"
|
#define RPL_LISTEND_MSG "323 %s :End of LIST"
|
||||||
#define RPL_CHANNELMODEIS_MSG "324 %s %s +%s"
|
#define RPL_CHANNELMODEIS_MSG "324 %s %s +%s"
|
||||||
|
#define RPL_CREATIONTIME_MSG "329 %s %s %ld"
|
||||||
#define RPL_NOTOPIC_MSG "331 %s %s :No topic is set"
|
#define RPL_NOTOPIC_MSG "331 %s %s :No topic is set"
|
||||||
#define RPL_TOPIC_MSG "332 %s %s :%s"
|
#define RPL_TOPIC_MSG "332 %s %s :%s"
|
||||||
#define RPL_TOPICSETBY_MSG "333 %s %s %s %u"
|
#define RPL_TOPICSETBY_MSG "333 %s %s %s %u"
|
||||||
|
Loading…
Reference in New Issue
Block a user