--- a/mcabber/src/commands.c Mon May 08 22:38:30 2006 +0200
+++ b/mcabber/src/commands.c Mon May 08 23:45:58 2006 +0200
@@ -1121,7 +1121,8 @@
} else {
if (name) scr_LogPrint(LPRINT_NORMAL, "Name: %s", name);
scr_LogPrint(LPRINT_NORMAL, "Type: %s",
- ((type == ROSTER_TYPE_GROUP) ? "group" : "unknown"));
+ type == ROSTER_TYPE_GROUP ? "group" :
+ (type == ROSTER_TYPE_SPECIAL ? "special" : "unknown"));
}
g_free(buffer);
@@ -1193,6 +1194,10 @@
scr_LogPrint(LPRINT_NORMAL, "You can't rename groups.");
return;
}
+ if (type & ROSTER_TYPE_SPECIAL) {
+ scr_LogPrint(LPRINT_NORMAL, "You can't rename this item.");
+ return;
+ }
newname = g_strdup(arg);
// Remove trailing space
@@ -1231,6 +1236,10 @@
scr_LogPrint(LPRINT_NORMAL, "You can't move groups!");
return;
}
+ if (type & ROSTER_TYPE_SPECIAL) {
+ scr_LogPrint(LPRINT_NORMAL, "You can't move this item.");
+ return;
+ }
newgroupname = g_strdup(arg);
// Remove trailing space