applied Eric's follow up patch
This commit is contained in:
parent
f87d3f5bef
commit
5eaa0fff0d
14
config.def.h
14
config.def.h
@ -1,8 +1,14 @@
|
|||||||
// Host used when "-h" is not given
|
/* Host used when "-h" is not given */
|
||||||
#define DEFAULT_HOST "irc.oftc.net"
|
#define DEFAULT_HOST "irc.oftc.net"
|
||||||
|
|
||||||
// Port used when "-p" is not given
|
/* Port used when "-p" is not given */
|
||||||
#define DEFAULT_PORT "6667"
|
#define DEFAULT_PORT "6667"
|
||||||
|
|
||||||
// Timestamp format; see strftime(3)
|
/* Timestamp format; see strftime(3). */
|
||||||
#define TIMESTAMP_FORMAT "%F %R"
|
#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!"
|
||||||
|
4
sic.c
4
sic.c
@ -63,7 +63,7 @@ parsein(char *s) {
|
|||||||
if(s[0] == '\0')
|
if(s[0] == '\0')
|
||||||
return;
|
return;
|
||||||
skip(s, '\n');
|
skip(s, '\n');
|
||||||
if(s[0] != ':') {
|
if(s[0] != COMMAND_PREFIX_CHARACTER) {
|
||||||
privmsg(channel, s);
|
privmsg(channel, s);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -84,7 +84,7 @@ parsein(char *s) {
|
|||||||
if(*p)
|
if(*p)
|
||||||
*p++ = '\0';
|
*p++ = '\0';
|
||||||
if(!*p)
|
if(!*p)
|
||||||
p = "sic - 250 LOC are too much!";
|
p = DEFAULT_PARTING_MESSAGE;
|
||||||
sout("PART %s :%s", s, p);
|
sout("PART %s :%s", s, p);
|
||||||
return;
|
return;
|
||||||
case 'm':
|
case 'm':
|
||||||
|
Loading…
Reference in New Issue
Block a user