mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 21:00:40 +02:00
Added ctcp_register() and ctcp_unregister() for registering CTCP commands.
It's used by CTCP CLIENTINFO to print list of known CTCP commands. Also added CTCP USERINFO command + /SET ctcp_userinfo_reply. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2063 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
7433dafcb1
commit
5ee08ed3c9
6 changed files with 146 additions and 16 deletions
19
src/perl/irc/Ctcp.xs
Normal file
19
src/perl/irc/Ctcp.xs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#include "module.h"
|
||||
|
||||
MODULE = Irssi::Irc::Ctcp PACKAGE = Irssi
|
||||
PROTOTYPES: ENABLE
|
||||
|
||||
void
|
||||
ctcp_register(name)
|
||||
char *name
|
||||
|
||||
void
|
||||
ctcp_unregister(name)
|
||||
char *name
|
||||
|
||||
MODULE = Irssi::Irc::Ctcp PACKAGE = Irssi::Irc::Server PREFIX = irc_server_
|
||||
|
||||
void
|
||||
ctcp_send_reply(server, data)
|
||||
Irssi::Irc::Server server
|
||||
char *data
|
||||
|
|
@ -184,6 +184,7 @@ CODE:
|
|||
|
||||
BOOT:
|
||||
irssi_boot(Irc__Channel);
|
||||
irssi_boot(Irc__Ctcp);
|
||||
irssi_boot(Irc__Dcc);
|
||||
irssi_boot(Irc__Modes);
|
||||
irssi_boot(Irc__Netsplit);
|
||||
|
|
|
|||
|
|
@ -73,11 +73,6 @@ send_raw_split(server, cmd, nickarg, max_nicks)
|
|||
CODE:
|
||||
irc_send_cmd_split(server, cmd, nickarg, max_nicks);
|
||||
|
||||
void
|
||||
ctcp_send_reply(server, data)
|
||||
Irssi::Irc::Server server
|
||||
char *data
|
||||
|
||||
MODULE = Irssi::Irc::Server PACKAGE = Irssi::Irc::Server PREFIX = server_
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue