summaryrefslogtreecommitdiff
path: root/src/perl
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2016-09-15 13:59:52 +0200
committerLemonBoy <thatlemon@gmail.com>2016-09-15 20:38:04 +0200
commit0e0d99587a9e2daa091d48adedfbf420cad21758 (patch)
tree263ba9a10478ecd41c12d096af50d8e174f7dcae /src/perl
parent9591afcb4b7157dd4b06b9c6390f70c725067b50 (diff)
downloadirssi-0e0d99587a9e2daa091d48adedfbf420cad21758.zip
Expose 'cap_toggle' to the perl scripts.
Diffstat (limited to 'src/perl')
-rw-r--r--src/perl/irc/Server.xs9
-rw-r--r--src/perl/irc/module.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/src/perl/irc/Server.xs b/src/perl/irc/Server.xs
index 0e9ec672..33417bf5 100644
--- a/src/perl/irc/Server.xs
+++ b/src/perl/irc/Server.xs
@@ -149,3 +149,12 @@ CODE:
OUTPUT:
RETVAL
+int
+irc_server_cap_toggle(server, cap, enable)
+ Irssi::Irc::Server server
+ char *cap
+ int enable
+CODE:
+ RETVAL = cap_toggle(server, cap, enable);
+OUTPUT:
+ RETVAL
diff --git a/src/perl/irc/module.h b/src/perl/irc/module.h
index 91c19c7a..a2454545 100644
--- a/src/perl/irc/module.h
+++ b/src/perl/irc/module.h
@@ -6,6 +6,7 @@
#include "irc-queries.h"
#include "irc-nicklist.h"
#include "irc-masks.h"
+#include "irc-cap.h"
#include "bans.h"
#include "modes.h"