mirror of
https://github.com/irssi/irssi.git
synced 2026-08-16 15:12:11 +02:00
DCC cleanups - split DCC_REC to CHAT|GET|SEND_DCC_RECs. Plugins should
now be able to add whatever new DCC types. Nick changes affect DCC chats. /WHOIS without parameters works properly in DCC CHAT queries. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1194 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
118f9a11eb
commit
e4f7d55ce9
20 changed files with 1398 additions and 912 deletions
28
src/irc/dcc/dcc-send.h
Normal file
28
src/irc/dcc/dcc-send.h
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#ifndef __DCC_SEND_H
|
||||
#define __DCC_SEND_H
|
||||
|
||||
#include "dcc.h"
|
||||
|
||||
#define DCC_SEND(dcc) \
|
||||
MODULE_CHECK_CAST_MODULE(dcc, SEND_DCC_REC, type, "DCC", "SEND")
|
||||
|
||||
#define IS_DCC_SEND(dcc) \
|
||||
(DCC_SEND(dcc) ? TRUE : FALSE)
|
||||
|
||||
typedef struct {
|
||||
#include "dcc-file-rec.h"
|
||||
|
||||
unsigned int file_quoted:1; /* file name was received quoted ("file name") */
|
||||
|
||||
/* fastsending: */
|
||||
unsigned int fastsend:1;
|
||||
unsigned int waitforend:1; /* file is sent, just wait for the replies from the other side */
|
||||
unsigned int gotalldata:1; /* got all acks from the other end (needed to make sure the end of transfer works right) */
|
||||
} SEND_DCC_REC;
|
||||
|
||||
#define DCC_SEND_TYPE module_get_uniq_id_str("DCC", "SEND")
|
||||
|
||||
void dcc_send_init(void);
|
||||
void dcc_send_deinit(void);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue