Compare commits
3 Commits
1c6ded5f0a
...
29b96f58e4
Author | SHA1 | Date | |
---|---|---|---|
29b96f58e4 | |||
d10cb36a4b | |||
32d27a182f |
2
Makefile
2
Makefile
@ -11,4 +11,4 @@ probotic: $(SRC) $(HDR)
|
||||
$(SRC) $(HDR):
|
||||
|
||||
run:
|
||||
./probotic -server irc.rizon.net -port 6667 -username probotic -channel '#/g/chad'
|
||||
./probotic -server irc.rizon.net -port 6667 -username probotic -channel '#stop_shitting_up_chad'
|
||||
|
2
build.sh
2
build.sh
@ -17,7 +17,7 @@ mkdir -p $PREFIX && echo "Made directory: $PREFIX"
|
||||
# Bourne shell is evil
|
||||
if [ ${DEBUG-0} -eq 1 ]
|
||||
then
|
||||
CFLAGS=`echo "${CFLAGS} -Og -ggdb"`
|
||||
CFLAGS=`echo "${CFLAGS} -O0 -ggdb"`
|
||||
else
|
||||
CPPFLAGS="${CPPFLAGS} -DNDEBUG"
|
||||
CFLAGS=`echo "${CFLAGS} -O2 -flto=auto -fomit-frame-pointer -s"`
|
||||
|
@ -63,7 +63,11 @@ ircmsg(const char* fmt,
|
||||
{ exit(1); }
|
||||
|
||||
puts(fmtdmsg);
|
||||
IRCMSG(fmtdmsg); // TODO: make it send the message line by line
|
||||
const char* delim = "\n";
|
||||
char* data = strtok(fmtdmsg, delim);
|
||||
do{
|
||||
IRCMSG(data);
|
||||
}while((data = strtok(NULL, delim), data));
|
||||
|
||||
free(fmtdmsg);
|
||||
va_end(args);
|
||||
|
Reference in New Issue
Block a user