-// Host used when "-h" is not given
+/* Host used when "-h" is not given */
#define DEFAULT_HOST "irc.oftc.net"
-// Port used when "-p" is not given
+/* Port used when "-p" is not given */
#define DEFAULT_PORT "6667"
-// Timestamp format; see strftime(3)
-#define TIMESTAMP_FORMAT "%F %R"
+/* Timestamp format; see strftime(3). */
+#define TIMESTAMP_FORMAT "%Y-%m-%d %R"
+
+/* Command prefix character. In most IRC clients this is '/'. */
+#define COMMAND_PREFIX_CHARACTER ':'
+
+/* Parting message used when none is specified with ":l ..." command. */
+#define DEFAULT_PARTING_MESSAGE "sic - 250 LOC are too much!"
if(s[0] == '\0')
return;
skip(s, '\n');
- if(s[0] != ':') {
+ if(s[0] != COMMAND_PREFIX_CHARACTER) {
privmsg(channel, s);
return;
}
if(*p)
*p++ = '\0';
if(!*p)
- p = "sic - 250 LOC are too much!";
+ p = DEFAULT_PARTING_MESSAGE;
sout("PART %s :%s", s, p);
return;
case 'm':