EKG commit list
2011-03-07 12:31:06 UTC
Author: gophi
Date: 2011-03-07 13:31:05 +0100 (Mon, 07 Mar 2011)
New Revision: 2843
Modified:
trunk/ChangeLog
trunk/src/commands.c
trunk/src/ui-ncurses.c
trunk/src/userlist.c
trunk/src/userlist.h
Log:
- typ ignorowania ,,display'' (socek/g)
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2010-03-02 11:52:32 UTC (rev 2842)
+++ trunk/ChangeLog 2011-03-07 12:31:05 UTC (rev 2843)
@@ -4,6 +4,10 @@
to kto? oznaczony przez ,,x'' (w - wojtekka, s - speedy, a - arekm,
d - drg, sz - szalik, del - deletek, g - gophi, p - porridge).
+// 2011-03-07
+
+- typ ignorowania ,,display'' (socek/g)
+
// 2010-03-02
- specjalne traktowanie aliasu /autorun (joshua/g)
Modified: trunk/src/commands.c
===================================================================
--- trunk/src/commands.c 2010-03-02 11:52:32 UTC (rev 2842)
+++ trunk/src/commands.c 2011-03-07 12:31:05 UTC (rev 2843)
@@ -6600,6 +6600,7 @@
" - notify - nie wy?wietla zmian stanu\n"
" - msg - ignoruje wiadomo?ci\n"
" - smsaway - nie przesy?a wiadomo?ci podczas nieobecno?ci\n"
+ " - display - nie wypisuje osoby na li?cie kontakt?w (w ncurses)\n"
" - dcc - ignoruje po??czenia DCC\n"
" - events - ignoruje zdarzenia zwi?zane z u?ytkownikiem\n"
" - * - wszystkie poziomy\n"
Modified: trunk/src/ui-ncurses.c
===================================================================
--- trunk/src/ui-ncurses.c 2010-03-02 11:52:32 UTC (rev 2842)
+++ trunk/src/ui-ncurses.c 2011-03-07 12:31:05 UTC (rev 2843)
@@ -1559,6 +1559,9 @@
if ((u->status != table[i].status1 && u->status != table[i].status2) || !u->display || !u->uin)
continue;
+
+ if (ignored_check(u->uin) & IGNORE_DISPLAY)
+ continue;
if (group && !group_member(u, group))
continue;
Modified: trunk/src/userlist.c
===================================================================
--- trunk/src/userlist.c 2010-03-02 11:52:32 UTC (rev 2842)
+++ trunk/src/userlist.c 2011-03-07 12:31:05 UTC (rev 2843)
@@ -66,6 +66,7 @@
{ IGNORE_DCC, "dcc" },
{ IGNORE_EVENTS, "events" },
{ IGNORE_SMSAWAY, "smsaway" },
+ { IGNORE_DISPLAY, "display" },
{ 0, NULL }
};
Modified: trunk/src/userlist.h
===================================================================
--- trunk/src/userlist.h 2010-03-02 11:52:32 UTC (rev 2842)
+++ trunk/src/userlist.h 2011-03-07 12:31:05 UTC (rev 2843)
@@ -68,6 +68,7 @@
IGNORE_EVENTS = TOGGLE_BIT(5),
IGNORE_NOTIFY = TOGGLE_BIT(6),
IGNORE_SMSAWAY = TOGGLE_BIT(7),
+ IGNORE_DISPLAY = TOGGLE_BIT(8),
IGNORE_ALL = 255
};
@@ -77,7 +78,7 @@
char *name;
};
-#define IGNORE_LABELS_COUNT 7
+#define IGNORE_LABELS_COUNT 8
struct ignore_label ignore_labels[IGNORE_LABELS_COUNT + 1];
list_t userlist;
Date: 2011-03-07 13:31:05 +0100 (Mon, 07 Mar 2011)
New Revision: 2843
Modified:
trunk/ChangeLog
trunk/src/commands.c
trunk/src/ui-ncurses.c
trunk/src/userlist.c
trunk/src/userlist.h
Log:
- typ ignorowania ,,display'' (socek/g)
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2010-03-02 11:52:32 UTC (rev 2842)
+++ trunk/ChangeLog 2011-03-07 12:31:05 UTC (rev 2843)
@@ -4,6 +4,10 @@
to kto? oznaczony przez ,,x'' (w - wojtekka, s - speedy, a - arekm,
d - drg, sz - szalik, del - deletek, g - gophi, p - porridge).
+// 2011-03-07
+
+- typ ignorowania ,,display'' (socek/g)
+
// 2010-03-02
- specjalne traktowanie aliasu /autorun (joshua/g)
Modified: trunk/src/commands.c
===================================================================
--- trunk/src/commands.c 2010-03-02 11:52:32 UTC (rev 2842)
+++ trunk/src/commands.c 2011-03-07 12:31:05 UTC (rev 2843)
@@ -6600,6 +6600,7 @@
" - notify - nie wy?wietla zmian stanu\n"
" - msg - ignoruje wiadomo?ci\n"
" - smsaway - nie przesy?a wiadomo?ci podczas nieobecno?ci\n"
+ " - display - nie wypisuje osoby na li?cie kontakt?w (w ncurses)\n"
" - dcc - ignoruje po??czenia DCC\n"
" - events - ignoruje zdarzenia zwi?zane z u?ytkownikiem\n"
" - * - wszystkie poziomy\n"
Modified: trunk/src/ui-ncurses.c
===================================================================
--- trunk/src/ui-ncurses.c 2010-03-02 11:52:32 UTC (rev 2842)
+++ trunk/src/ui-ncurses.c 2011-03-07 12:31:05 UTC (rev 2843)
@@ -1559,6 +1559,9 @@
if ((u->status != table[i].status1 && u->status != table[i].status2) || !u->display || !u->uin)
continue;
+
+ if (ignored_check(u->uin) & IGNORE_DISPLAY)
+ continue;
if (group && !group_member(u, group))
continue;
Modified: trunk/src/userlist.c
===================================================================
--- trunk/src/userlist.c 2010-03-02 11:52:32 UTC (rev 2842)
+++ trunk/src/userlist.c 2011-03-07 12:31:05 UTC (rev 2843)
@@ -66,6 +66,7 @@
{ IGNORE_DCC, "dcc" },
{ IGNORE_EVENTS, "events" },
{ IGNORE_SMSAWAY, "smsaway" },
+ { IGNORE_DISPLAY, "display" },
{ 0, NULL }
};
Modified: trunk/src/userlist.h
===================================================================
--- trunk/src/userlist.h 2010-03-02 11:52:32 UTC (rev 2842)
+++ trunk/src/userlist.h 2011-03-07 12:31:05 UTC (rev 2843)
@@ -68,6 +68,7 @@
IGNORE_EVENTS = TOGGLE_BIT(5),
IGNORE_NOTIFY = TOGGLE_BIT(6),
IGNORE_SMSAWAY = TOGGLE_BIT(7),
+ IGNORE_DISPLAY = TOGGLE_BIT(8),
IGNORE_ALL = 255
};
@@ -77,7 +78,7 @@
char *name;
};
-#define IGNORE_LABELS_COUNT 7
+#define IGNORE_LABELS_COUNT 8
struct ignore_label ignore_labels[IGNORE_LABELS_COUNT + 1];
list_t userlist;