comparison src/protocols/irc/irc.c @ 9741:b10d4c6ac7eb

[gaim-migrate @ 10606] (20:26:58) KingAnt: LSchiere: Can you revert it and I'll post some suggestions to the patch in the tracker? committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Thu, 12 Aug 2004 00:26:28 +0000
parents 2bb5e2cd64bd
children 4a8bf81b82ae
comparison
equal deleted inserted replaced
9740:2bb5e2cd64bd 9741:b10d4c6ac7eb
31 #include "debug.h" 31 #include "debug.h"
32 #include "notify.h" 32 #include "notify.h"
33 #include "prpl.h" 33 #include "prpl.h"
34 #include "plugin.h" 34 #include "plugin.h"
35 #include "util.h" 35 #include "util.h"
36 #include "privacy.h"
37 36
38 #include "irc.h" 37 #include "irc.h"
39 38
40 static void irc_buddy_append(char *name, struct irc_buddy *ib, GString *string); 39 static void irc_buddy_append(char *name, struct irc_buddy *ib, GString *string);
41 40
328 { 327 {
329 struct irc_conn *irc = gc->proto_data; 328 struct irc_conn *irc = gc->proto_data;
330 const char *args[1]; 329 const char *args[1];
331 args[0] = who; 330 args[0] = who;
332 irc_cmd_whois(irc, "whois", NULL, args); 331 irc_cmd_whois(irc, "whois", NULL, args);
333 }
334
335 static void irc_add_deny(GaimConnection *gc, const char *who)
336 {
337 gaim_privacy_deny_add(gc->account,who,1);
338 }
339
340 static void irc_rem_deny(GaimConnection *gc, const char *who)
341 {
342 gaim_privacy_deny_remove(gc->account,who,1);
343 }
344
345 static void
346 irc_add_permit(GaimConnection *gc, const char *who)
347 {
348 gaim_privacy_permit_add(gc->account,who,1);
349 }
350
351 static void
352 irc_rem_permit(GaimConnection *gc, const char *who)
353 {
354 gaim_privacy_permit_remove(gc->account,who,1);
355 }
356
357 static void
358 irc_set_permit_deny(GaimConnection *gc)
359 {
360 /* This only has to exist */
361 return;
362 } 332 }
363 333
364 static void irc_set_away(GaimConnection *gc, const char *state, const char *msg) 334 static void irc_set_away(GaimConnection *gc, const char *state, const char *msg)
365 { 335 {
366 struct irc_conn *irc = gc->proto_data; 336 struct irc_conn *irc = gc->proto_data;
620 NULL, /* change_passwd */ 590 NULL, /* change_passwd */
621 irc_add_buddy, /* add_buddy */ 591 irc_add_buddy, /* add_buddy */
622 NULL, /* add_buddies */ 592 NULL, /* add_buddies */
623 irc_remove_buddy, /* remove_buddy */ 593 irc_remove_buddy, /* remove_buddy */
624 NULL, /* remove_buddies */ 594 NULL, /* remove_buddies */
625 irc_add_permit, /* add_permit */ 595 NULL, /* add_permit */
626 irc_add_deny, /* add_deny */ 596 NULL, /* add_deny */
627 irc_rem_permit, /* rem_permit */ 597 NULL, /* rem_permit */
628 irc_rem_deny, /* rem_deny */ 598 NULL, /* rem_deny */
629 irc_set_permit_deny, /* set_permit_deny */ 599 NULL, /* set_permit_deny */
630 NULL, /* warn */ 600 NULL, /* warn */
631 irc_chat_join, /* join_chat */ 601 irc_chat_join, /* join_chat */
632 NULL, /* reject_chat */ 602 NULL, /* reject_chat */
633 irc_chat_invite, /* chat_invite */ 603 irc_chat_invite, /* chat_invite */
634 irc_chat_leave, /* chat_leave */ 604 irc_chat_leave, /* chat_leave */