2 # Parent c79daa66df29a7364a619a77de910104acc6c9a3
4 diff -r c79daa66df29 include/version.h
5 --- a/include/version.h Sat Jul 20 13:33:10 2013 +0100
6 +++ b/include/version.h Sat Jul 20 13:53:10 2013 +0100
8 extern const char *version;
9 extern const char *creation;
10 extern const char *infotext[];
11 +extern const char *sourcestext[];
12 extern const char *generation;
14 #endif /* INCLUDED_version_h */
15 diff -r c79daa66df29 ircd/m_info.c
16 --- a/ircd/m_info.c Sat Jul 20 13:33:10 2013 +0100
17 +++ b/ircd/m_info.c Sat Jul 20 13:53:10 2013 +0100
20 int m_info(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
22 - const char **text = infotext;
25 if (hunt_server_cmd(sptr, CMD_INFO, cptr, 1, ":%C", 1, parc, parv) !=
32 + for (text=infotext;*text;text++)
33 send_reply(sptr, RPL_INFO, *text);
37 send_reply(sptr, SND_EXPLICIT | RPL_INFO, ":Birth Date: %s, compile # %s",
38 creation, generation);
39 send_reply(sptr, SND_EXPLICIT | RPL_INFO, ":On-line since %s",
42 int ms_info(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
44 - const char **text = infotext;
50 if (hunt_server_cmd(sptr, CMD_INFO, cptr, 1, ":%C", 1, parc, parv) !=
59 + for (text=infotext;*text;text++)
60 send_reply(sptr, RPL_INFO, *text);
67 - send_reply(sptr, RPL_INFO, *text++);
68 - send_reply(sptr, RPL_INFO, "");
69 + for (text=sourcestext;*text;text++)
70 + send_reply(sptr, RPL_INFO, *text);
73 send_reply(sptr, SND_EXPLICIT | RPL_INFO, ":Birth Date: %s, compile # %s",
74 creation, generation);
75 send_reply(sptr, SND_EXPLICIT | RPL_INFO, ":On-line since %s",
78 const char **text = infotext;
80 - if (hunt_server_cmd(sptr, CMD_INFO, cptr, 1, ":%C", 1, parc, parv) ==
81 + if (hunt_server_cmd(sptr, CMD_INFO, cptr, 1, ":%C", 1, parc, parv) !=
85 + if (parv[1] == NULL)
90 - send_reply(sptr, RPL_INFO, *text);
93 - if (IsOper(sptr) && (NULL != parv[1]))
96 - send_reply(sptr, RPL_INFO, *text++);
97 - send_reply(sptr, RPL_INFO, "");
99 - send_reply(sptr, SND_EXPLICIT | RPL_INFO, ":Birth Date: %s, compile # %s",
100 - creation, generation);
101 - send_reply(sptr, SND_EXPLICIT | RPL_INFO, ":On-line since %s",
102 - myctime(cli_firsttime(&me)));
103 - send_reply(sptr, RPL_ENDOFINFO);
104 + for (text=infotext;*text;text++)
105 + send_reply(sptr, RPL_INFO, *text);
109 + for (text=sourcestext;*text;text++)
110 + send_reply(sptr, RPL_INFO, *text);
113 + send_reply(sptr, SND_EXPLICIT | RPL_INFO, ":Birth Date: %s, compile # %s",
114 + creation, generation);
115 + send_reply(sptr, SND_EXPLICIT | RPL_INFO, ":On-line since %s",
116 + myctime(cli_firsttime(&me)));
117 + send_reply(sptr, RPL_ENDOFINFO);
122 diff -r c79daa66df29 ircd/version.c.SH
123 --- a/ircd/version.c.SH Sat Jul 20 13:33:10 2013 +0100
124 +++ b/ircd/version.c.SH Sat Jul 20 13:53:10 2013 +0100
126 "Thanks goes to all other people who contributed to any version.",
127 "A full listing of all coders can be found in doc/Authors in the",
133 +const char *sourcestext[] = {