Mercurial > pidgin
comparison libpurple/protocols/irc/irc.c @ 24952:bcad7dc4b453
propagate from branch 'im.pidgin.pidgin' (head 633ffe234af48ead3631ae62e23840b4438fcf5f)
to branch 'im.pidgin.maiku.vv' (head 5585b8e919d9adb0eb491c714768027e81f1918c)
author | Mike Ruprecht <maiku@soc.pidgin.im> |
---|---|
date | Thu, 06 Nov 2008 03:20:05 +0000 |
parents | 4bc74deeb503 c204239bef48 |
children | ff4212a5268f |
comparison
equal
deleted
inserted
replaced
24951:94224a5563db | 24952:bcad7dc4b453 |
---|---|
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); |