changeset 1284:2c96720c4f5b

Add comments (vorner)
author Mikael Berthe <mikael@lilotux.net>
date Sat, 25 Aug 2007 22:55:26 +0200
parents 2faf179166f3
children 1046bbcb6d14
files mcabber/src/screen.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/src/screen.c	Sat Aug 25 22:48:59 2007 +0200
+++ b/mcabber/src/screen.c	Sat Aug 25 22:55:26 2007 +0200
@@ -237,6 +237,7 @@
   g_free(col);
 }
 
+// Removes all roster coloring rules
 void scr_RosterClearColor(void)
 {
   GSList *head;
@@ -247,6 +248,13 @@
   rostercolrules = NULL;
 }
 
+// Adds, modifies or removes roster coloring rule
+// color set to "-" removes the rule,
+// otherwise it is modified (if exists) or added
+//
+// Returns weather it was successfull (therefore the roster should be
+// redrawed) or not. If it failed, for example because of invalid color
+// name, it also prints the error.
 bool scr_RosterColor(const char *status, const char *wildcard,
                      const char *color)
 {