comparison libpurple/protocols/irc/irc.c @ 27906:6ecfc6b9667c

propagate from branch 'im.pidgin.pidgin' (head ca4b6e987b967927b0f8bd001bc33440a6885000) to branch 'im.pidgin.pidgin.yaz' (head 7a92169e2ac82026d2b2918ed9662c7fd42e3280)
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Mon, 17 Nov 2008 06:15:33 +0000
parents b522393714d6 c204239bef48
children d8e6a2d592a4
comparison
equal deleted inserted replaced
27905:45ce87f9a07f 27906:6ecfc6b9667c
60 static gboolean irc_nick_equal(const char *nick1, const char *nick2); 60 static gboolean irc_nick_equal(const char *nick1, const char *nick2);
61 static void irc_buddy_free(struct irc_buddy *ib); 61 static void irc_buddy_free(struct irc_buddy *ib);
62 62
63 PurplePlugin *_irc_plugin = NULL; 63 PurplePlugin *_irc_plugin = NULL;
64 64
65 static const char *status_chars = "@+%&";
66
67 static void irc_view_motd(PurplePluginAction *action) 65 static void irc_view_motd(PurplePluginAction *action)
68 { 66 {
69 PurpleConnection *gc = (PurpleConnection *) action->context; 67 PurpleConnection *gc = (PurpleConnection *) action->context;
70 struct irc_conn *irc; 68 struct irc_conn *irc;
71 char *title; 69 char *title;
516 { 514 {
517 struct irc_conn *irc = gc->proto_data; 515 struct irc_conn *irc = gc->proto_data;
518 char *plain; 516 char *plain;
519 const char *args[2]; 517 const char *args[2];
520 518
521 if (strchr(status_chars, *who) != NULL) 519 args[0] = irc_nick_skip_mode(irc, who);
522 args[0] = who + 1;
523 else
524 args[0] = who;
525 520
526 purple_markup_html_to_xhtml(what, NULL, &plain); 521 purple_markup_html_to_xhtml(what, NULL, &plain);
527 args[1] = plain; 522 args[1] = plain;
528 523
529 irc_cmd_privmsg(irc, "msg", NULL, args); 524 irc_cmd_privmsg(irc, "msg", NULL, args);