Mercurial > pidgin
comparison libpurple/protocols/irc/irc.c @ 32246:10e5000326a5
Convert code to use the purple_account accessor functions.
author | andrew.victor@mxit.com |
---|---|
date | Sat, 01 Oct 2011 21:04:35 +0000 |
parents | 1f68af4afe67 |
children | 2ec94166be43 |
comparison
equal
deleted
inserted
replaced
32245:f75041cb3fec | 32246:10e5000326a5 |
---|---|
643 } | 643 } |
644 } | 644 } |
645 | 645 |
646 static void read_input(struct irc_conn *irc, int len) | 646 static void read_input(struct irc_conn *irc, int len) |
647 { | 647 { |
648 PurpleConnection *connection = purple_account_get_connection(irc->account); | |
648 char *cur, *end; | 649 char *cur, *end; |
649 | 650 |
650 irc->account->gc->last_received = time(NULL); | 651 connection->last_received = time(NULL); |
651 irc->inbufused += len; | 652 irc->inbufused += len; |
652 irc->inbuf[irc->inbufused] = '\0'; | 653 irc->inbuf[irc->inbufused] = '\0'; |
653 | 654 |
654 cur = irc->inbuf; | 655 cur = irc->inbuf; |
655 | 656 |