mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 04:43:34 +02:00
Lots of changes again. Biggest ones:
- window's text buffer should work better - themes are almost working, you can change the text formats with /format - automatically try to rejoin the channel after 5 minutes if the join there failed because it was "temporarily unavailable" (netsplits) - generally cleaning code.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@216 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
969cfe8abc
commit
cbdaf7d06d
63 changed files with 2471 additions and 1912 deletions
|
|
@ -13,5 +13,6 @@ libfe_common_irc_notifylist_la_SOURCES = \
|
|||
fe-notifylist.c \
|
||||
module-formats.c
|
||||
|
||||
noinst_headers = \
|
||||
noinst_HEADERS = \
|
||||
module.h \
|
||||
module-formats.h
|
||||
|
|
|
|||
|
|
@ -31,6 +31,8 @@
|
|||
#include "ircnet-setup.h"
|
||||
#include "irc/notifylist/notifylist.h"
|
||||
|
||||
#include "themes.h"
|
||||
|
||||
/* add the nick of a hostmask to list if it isn't there already */
|
||||
static GSList *mask_add_once(GSList *list, const char *mask)
|
||||
{
|
||||
|
|
@ -224,6 +226,8 @@ static void notifylist_unidle(IRC_SERVER_REC *server, const char *nick,
|
|||
|
||||
void fe_notifylist_init(void)
|
||||
{
|
||||
theme_register(fecommon_irc_notifylist_formats);
|
||||
|
||||
command_bind("notify", NULL, (SIGNAL_FUNC) cmd_notify);
|
||||
signal_add("notifylist joined", (SIGNAL_FUNC) notifylist_joined);
|
||||
signal_add("notifylist left", (SIGNAL_FUNC) notifylist_left);
|
||||
|
|
@ -233,6 +237,8 @@ void fe_notifylist_init(void)
|
|||
|
||||
void fe_notifylist_deinit(void)
|
||||
{
|
||||
theme_unregister();
|
||||
|
||||
command_unbind("notify", (SIGNAL_FUNC) cmd_notify);
|
||||
signal_remove("notifylist joined", (SIGNAL_FUNC) notifylist_joined);
|
||||
signal_remove("notifylist left", (SIGNAL_FUNC) notifylist_left);
|
||||
|
|
|
|||
|
|
@ -23,17 +23,19 @@
|
|||
|
||||
FORMAT_REC fecommon_irc_notifylist_formats[] =
|
||||
{
|
||||
{ MODULE_NAME, "Notifylist", 0 },
|
||||
{ MODULE_NAME, "Notifylist", 0 },
|
||||
|
||||
/* ---- */
|
||||
{ NULL, "Notifylist", 0 },
|
||||
/* ---- */
|
||||
{ NULL, "Notifylist", 0 },
|
||||
|
||||
{ "notify_join", "%_$0%_ %K[%n$1@$2%K] [%n%_$3%_%K]%n has joined to $4", 5, { 0, 0, 0, 0, 0 } },
|
||||
{ "notify_part", "%_$0%_ has left $4", 5, { 0, 0, 0, 0, 0 } },
|
||||
{ "notify_away", "%_$0%_ %K[%n$5%K]%n %K[%n$1@$2%K] [%n%_$3%_%K]%n is now away: $4", 6, { 0, 0, 0, 0, 0, 0 } },
|
||||
{ "notify_unaway", "%_$0%_ %K[%n$4%K]%n %K[%n$1@$2%K] [%n%_$3%_%K]%n is now unaway", 5, { 0, 0, 0, 0, 0 } },
|
||||
{ "notify_unidle", "%_$0%_ %K[%n$5%K]%n %K[%n$1@$2%K] [%n%_$3%_%K]%n just stopped idling", 6, { 0, 0, 0, 0, 0, 0 } },
|
||||
{ "notify_online", "On $0: %_$1%_", 2, { 0, 0 } },
|
||||
{ "notify_offline", "Offline: $0", 1, { 0 } },
|
||||
{ "notify_list", "$0: $1 $2 $3", 4, { 0, 0, 0, 0 } }
|
||||
{ "notify_join", "%_$0%_ %K[%n$1@$2%K] [%n%_$3%_%K]%n has joined to $4", 5, { 0, 0, 0, 0, 0 } },
|
||||
{ "notify_part", "%_$0%_ has left $4", 5, { 0, 0, 0, 0, 0 } },
|
||||
{ "notify_away", "%_$0%_ %K[%n$5%K]%n %K[%n$1@$2%K] [%n%_$3%_%K]%n is now away: $4", 6, { 0, 0, 0, 0, 0, 0 } },
|
||||
{ "notify_unaway", "%_$0%_ %K[%n$4%K]%n %K[%n$1@$2%K] [%n%_$3%_%K]%n is now unaway", 5, { 0, 0, 0, 0, 0 } },
|
||||
{ "notify_unidle", "%_$0%_ %K[%n$5%K]%n %K[%n$1@$2%K] [%n%_$3%_%K]%n just stopped idling", 6, { 0, 0, 0, 0, 0, 0 } },
|
||||
{ "notify_online", "On $0: %_$1%_", 2, { 0, 0 } },
|
||||
{ "notify_offline", "Offline: $0", 1, { 0 } },
|
||||
{ "notify_list", "$0: $1 $2 $3", 4, { 0, 0, 0, 0 } },
|
||||
|
||||
{ NULL, NULL, 0 },
|
||||
};
|
||||
|
|
|
|||
|
|
@ -16,6 +16,3 @@ enum {
|
|||
};
|
||||
|
||||
extern FORMAT_REC fecommon_irc_notifylist_formats[];
|
||||
#define MODULE_FORMATS fecommon_irc_notifylist_formats
|
||||
|
||||
#include "printformat.h"
|
||||
|
|
|
|||
3
src/fe-common/irc/notifylist/module.h
Normal file
3
src/fe-common/irc/notifylist/module.h
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#include "common.h"
|
||||
|
||||
#define MODULE_NAME "fe-common/irc/notifylist"
|
||||
Loading…
Add table
Add a link
Reference in a new issue