From 7c94cb083f5354cf85453e9465887fc45bf5bcdc Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 3 Feb 2002 21:53:37 +0000 Subject: Added target_type to send_message(), -channel and -nick parameters to /MSG to specify if it's supposed to be to channel/nick. /MSG -channel is used automatically by irssi when sending messages to channel (the "normal" way without /msg). This should help with protocols that don't have any channel name prefixes. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2383 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/server-rec.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core/server-rec.h') diff --git a/src/core/server-rec.h b/src/core/server-rec.h index 9f5070f7..0003f698 100644 --- a/src/core/server-rec.h +++ b/src/core/server-rec.h @@ -60,7 +60,8 @@ int (*ischannel)(SERVER_REC *server, const char *data); of them aren't supported '\0' can be used. */ const char *(*get_nick_flags)(void); /* send public or private message to server */ -void (*send_message)(SERVER_REC *server, const char *target, const char *msg); +void (*send_message)(SERVER_REC *server, const char *target, + const char *msg, int target_type); /* -- Default implementations are used if NULL -- */ CHANNEL_REC *(*channel_find_func)(SERVER_REC *server, const char *name); -- cgit v1.2.3