Subversion Repositories IRC-Archiver

Rev

Rev 23 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23 Rev 24
Line 1... Line 1...
1
/* $Id: bot.c 23 2024-09-01 01:18:47Z nishi $ */
1
/* $Id: bot.c 24 2024-09-03 16:33:08Z nishi $ */
2
 
2
 
3
#include "ia_bot.h"
3
#include "ia_bot.h"
4
 
4
 
5
#include "ia_util.h"
5
#include "ia_util.h"
6
#include "ia_db.h"
6
#include "ia_db.h"
Line 279... Line 279...
279
												}
279
												}
280
												range.from = tfrom;
280
												range.from = tfrom;
281
												range.to = tto;
281
												range.to = tto;
282
												range.channel = chn;
282
												range.channel = chn;
283
												web_html_generate(name, range);
283
												web_html_generate(name, range);
-
 
284
 
-
 
285
												sprintf(construct, "PRIVMSG %s :Archived this channel", chn);
-
 
286
												ircfw_socket_send_cmd(ia_sock, NULL, construct);
284
											}
287
											}
285
										}
288
										}
286
									} else {
289
									} else {
287
										sprintf(construct, "PRIVMSG %s :You must be an admin to use this", nick);
290
										sprintf(construct, "PRIVMSG %s :You must be an admin to use this", nick);
288
										ircfw_socket_send_cmd(ia_sock, NULL, construct);
291
										ircfw_socket_send_cmd(ia_sock, NULL, construct);