$OpenBSD: patch-src_pork_aim_c,v 1.1 2003/07/19 05:59:41 jolan Exp $
--- src/pork_aim.c.orig	Thu Jul 10 09:14:49 2003
+++ src/pork_aim.c	Sat Jul 19 00:01:07 2003
@@ -2177,18 +2177,10 @@ static int aim_send_msg_auto(struct pork
 }
 
 static int aim_send_msg(struct pork_acct *acct, char *dest, char *msg) {
-	int ret;
 	struct aim_priv *priv = acct->data;
 	char *msg_html = text_to_html(msg);
 
-	ret = aim_im_sendch1(&priv->aim_session, dest, 0, msg_html);
-
-	if (acct->away_msg != NULL) {
-		if (opt_get_bool(OPT_SEND_REMOVES_AWAY))
-			aim_set_away(acct, NULL);
-	}
-
-	return (ret);
+	return (aim_im_sendch1(&priv->aim_session, dest, 0, msg_html));
 }
 
 static int aim_add_block(struct pork_acct *acct, char *target) {
@@ -2733,7 +2725,7 @@ static int aim_chat_print_users(struct p
 	if (i > 0 && buf[i - 1] == ' ')
 		buf[i - 1] = '\0';
 
-	screen_win_msg(win, 0, 0, 1, "%s", buf);
+	screen_write(win, buf);
 	return (0);
 }
 
@@ -3040,7 +3032,6 @@ int aim_proto_init(struct pork_proto *pr
 	proto->buddy_permit = aim_add_permit;
 	proto->buddy_remove = aim_buddy_remove;
 	proto->buddy_remove_permit = aim_remove_permit;
-	proto->buddy_search = aim_search;
 	proto->buddy_unblock = aim_unblock;
 	proto->buddy_update = aim_update_buddy;
 
@@ -3054,6 +3045,7 @@ int aim_proto_init(struct pork_proto *pr
 	proto->chat_users = aim_chat_print_users;
 	proto->chat_who = aim_chat_print_users;
 
+	proto->who = aim_search;
 	proto->connect = aim_connect;
 	proto->free = aim_acct_free;
 	proto->get_away_msg = aim_get_away_msg;
