diff mcabber/src/commands.c @ 584:414fbf558f1e

jb_room_setattrib()
author Mikael Berthe <mikael@lilotux.net>
date Fri, 09 Dec 2005 19:49:58 +0100
parents fed6d1e4d7a9
children 7eff2c1481fa
line wrap: on
line diff
--- a/mcabber/src/commands.c	Tue Dec 06 21:13:03 2005 +0100
+++ b/mcabber/src/commands.c	Fri Dec 09 19:49:58 2005 +0100
@@ -1251,6 +1251,7 @@
 {
   char **paramlst;
   gchar *jid;
+  struct role_affil ra;
   const char *roomid = buddy_getjid(bud);
 
   paramlst = split_arg(arg, 2, 1); // jid, [reason]
@@ -1263,7 +1264,10 @@
     return;
   }
 
-  jb_room_setaffil(roomid, jid, NULL, affil_outcast, arg);
+  ra.type = type_affil;
+  ra.val.affil = affil_outcast;
+
+  jb_room_setattrib(roomid, jid, NULL, ra, arg);
 
   free_arg_lst(paramlst);
 }
@@ -1273,6 +1277,7 @@
 {
   char **paramlst;
   gchar *nick;
+  struct role_affil ra;
   const char *roomid = buddy_getjid(bud);
 
   paramlst = split_arg(arg, 2, 1); // nickname, [reason]
@@ -1285,7 +1290,10 @@
     return;
   }
 
-  jb_room_setaffil(roomid, NULL, nick, affil_none, arg);
+  ra.type = type_role;
+  ra.val.affil = role_none;
+
+  jb_room_setattrib(roomid, NULL, nick, ra, arg);
 
   free_arg_lst(paramlst);
 }