Mercurial > hg
comparison mcabber/src/roster.h @ 1377:cd9182f0b5c7
Add /room setopt {print_status,auto_whois}
- add the command /room setopt
- add option 'muc_auto_whois'
The MUC settings auto_whois and print_status can be set on
a per-room basis.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Tue, 27 Nov 2007 23:57:20 +0100 |
parents | 9716cf8a0726 |
children | f89844a0448a |
comparison
equal
deleted
inserted
replaced
1376:a0deb5124ebf | 1377:cd9182f0b5c7 |
---|---|
52 }; | 52 }; |
53 | 53 |
54 enum findwhat { | 54 enum findwhat { |
55 jidsearch, | 55 jidsearch, |
56 namesearch | 56 namesearch |
57 }; | |
58 | |
59 extern char *strprintstatus[]; | |
60 | |
61 // Note: do not change the ordering as these values are visible | |
62 // to the user (option 'muc_print_status')! | |
63 enum room_printstatus { | |
64 status_default, | |
65 status_none, | |
66 status_in_and_out, | |
67 status_all | |
68 }; | |
69 | |
70 extern char *strautowhois[]; | |
71 | |
72 enum room_autowhois { | |
73 autowhois_default, | |
74 autowhois_off, | |
75 autowhois_on | |
57 }; | 76 }; |
58 | 77 |
59 struct role_affil { | 78 struct role_affil { |
60 enum { type_role, type_affil } type; | 79 enum { type_role, type_affil } type; |
61 union { | 80 union { |
168 const char *buddy_getnickname(gpointer rosterdata); | 187 const char *buddy_getnickname(gpointer rosterdata); |
169 void buddy_setinsideroom(gpointer rosterdata, guint inside); | 188 void buddy_setinsideroom(gpointer rosterdata, guint inside); |
170 guint buddy_getinsideroom(gpointer rosterdata); | 189 guint buddy_getinsideroom(gpointer rosterdata); |
171 void buddy_settopic(gpointer rosterdata, const char *newtopic); | 190 void buddy_settopic(gpointer rosterdata, const char *newtopic); |
172 const char *buddy_gettopic(gpointer rosterdata); | 191 const char *buddy_gettopic(gpointer rosterdata); |
192 void buddy_setprintstatus(gpointer rosterdata, enum room_printstatus); | |
193 enum room_printstatus buddy_getprintstatus(gpointer rosterdata); | |
194 void buddy_setautowhois(gpointer rosterdata, enum room_autowhois); | |
195 enum room_autowhois buddy_getautowhois(gpointer rosterdata); | |
173 void buddy_settype(gpointer rosterdata, guint type); | 196 void buddy_settype(gpointer rosterdata, guint type); |
174 guint buddy_gettype(gpointer rosterdata); | 197 guint buddy_gettype(gpointer rosterdata); |
175 guint buddy_getsubscription(gpointer rosterdata); | 198 guint buddy_getsubscription(gpointer rosterdata); |
176 void buddy_setgroup(gpointer rosterdata, char *newgroupname); | 199 void buddy_setgroup(gpointer rosterdata, char *newgroupname); |
177 const char *buddy_getgroupname(gpointer rosterdata); | 200 const char *buddy_getgroupname(gpointer rosterdata); |