mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
Merge pull request #1288 from jesopo/perl-chatnet-usermode
add IRC_CHATNET_REC->usermode to perl chatnet hashes
This commit is contained in:
commit
9a8fc7112a
@ -27,7 +27,7 @@ Language: Cpp
|
|||||||
Cpp11BracedListStyle: false
|
Cpp11BracedListStyle: false
|
||||||
MaxEmptyLinesToKeep: 1
|
MaxEmptyLinesToKeep: 1
|
||||||
PointerAlignment: Right
|
PointerAlignment: Right
|
||||||
SortIncludes: true
|
SortIncludes: false
|
||||||
SpaceAfterCStyleCast: true
|
SpaceAfterCStyleCast: true
|
||||||
SpaceBeforeAssignmentOperators: true
|
SpaceBeforeAssignmentOperators: true
|
||||||
SpaceBeforeParens: ControlStatements
|
SpaceBeforeParens: ControlStatements
|
||||||
|
@ -3,6 +3,12 @@
|
|||||||
|
|
||||||
static int initialized = FALSE;
|
static int initialized = FALSE;
|
||||||
|
|
||||||
|
static void perl_irc_chatnet_fill_hash(HV *hv, IRC_CHATNET_REC *chatnet)
|
||||||
|
{
|
||||||
|
perl_chatnet_fill_hash(hv, (CHATNET_REC *) chatnet);
|
||||||
|
(void) hv_store(hv, "usermode", 8, new_pv(chatnet->usermode), 0);
|
||||||
|
}
|
||||||
|
|
||||||
static void perl_irc_connect_fill_hash(HV *hv, IRC_SERVER_CONNECT_REC *conn)
|
static void perl_irc_connect_fill_hash(HV *hv, IRC_SERVER_CONNECT_REC *conn)
|
||||||
{
|
{
|
||||||
perl_connect_fill_hash(hv, (SERVER_CONNECT_REC *) conn);
|
perl_connect_fill_hash(hv, (SERVER_CONNECT_REC *) conn);
|
||||||
@ -233,6 +239,8 @@ CODE:
|
|||||||
|
|
||||||
chat_type = chat_protocol_lookup("IRC");
|
chat_type = chat_protocol_lookup("IRC");
|
||||||
|
|
||||||
|
irssi_add_object(module_get_uniq_id("CHATNET", 0), chat_type, "Irssi::Irc::Chatnet",
|
||||||
|
(PERL_OBJECT_FUNC) perl_irc_chatnet_fill_hash);
|
||||||
irssi_add_object(module_get_uniq_id("SERVER CONNECT", 0),
|
irssi_add_object(module_get_uniq_id("SERVER CONNECT", 0),
|
||||||
chat_type, "Irssi::Irc::Connect",
|
chat_type, "Irssi::Irc::Connect",
|
||||||
(PERL_OBJECT_FUNC) perl_irc_connect_fill_hash);
|
(PERL_OBJECT_FUNC) perl_irc_connect_fill_hash);
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#include <irssi/src/perl/common/module.h>
|
#include <irssi/src/perl/common/module.h>
|
||||||
|
|
||||||
#include <irssi/src/irc/core/irc.h>
|
#include <irssi/src/irc/core/irc.h>
|
||||||
|
#include <irssi/src/irc/core/irc-chatnets.h>
|
||||||
#include <irssi/src/irc/core/irc-servers.h>
|
#include <irssi/src/irc/core/irc-servers.h>
|
||||||
#include <irssi/src/irc/core/irc-channels.h>
|
#include <irssi/src/irc/core/irc-channels.h>
|
||||||
#include <irssi/src/irc/core/irc-queries.h>
|
#include <irssi/src/irc/core/irc-queries.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user