diff options
author | epoch <epoch@hacking.allowed.org> | 2014-03-25 15:53:47 -0500 |
---|---|---|
committer | epoch <epoch@hacking.allowed.org> | 2014-03-25 15:53:47 -0500 |
commit | 7bfe791fa77d7b9adf430bd24266d9837230cade (patch) | |
tree | e2c7379347538543ee74ef9154f89c2c316142a5 /segfault.c | |
parent | fe808525acbc71410e22bbb6b5cfa5266b2dd30f (diff) | |
download | segfault-7bfe791fa77d7b9adf430bd24266d9837230cade.tar.gz segfault-7bfe791fa77d7b9adf430bd24266d9837230cade.zip |
fixed it *really*
Diffstat (limited to 'segfault.c')
-rw-r--r-- | segfault.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -705,10 +705,12 @@ void c_leetappend(int fd,char *from,char *msg) { void c_tails(int fd,char *from) { int i; int l; + int at_least_one=0; char *tmp,*x; //privmsg(fd,from,"filename@filepos --msg|raw-> IRCdestination"); for(i=0;i<MAXTAILS;i++) { if(tailf[i].fp) { + at_least_one=1; l=(strlen(tailf[i].file) + strlen(tailf[i].to) + 50);//??? hack. fix it. tmp=malloc(l); if(!tmp) { @@ -722,6 +724,9 @@ void c_tails(int fd,char *from) { free(tmp); } } + if(!at_least_one) { + privmsg(fd,from,"I don't have any tails. :("); + } } char recording,recording_raw; |