Add comments (vorner)
authorMikael Berthe <mikael@lilotux.net>
Sat, 25 Aug 2007 22:55:26 +0200
changeset 1284 2c96720c4f5b
parent 1283 2faf179166f3
child 1285 1046bbcb6d14
Add comments (vorner)
mcabber/src/screen.c
--- 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)
 {