Re: ebnc

"A. Craig West" <[email protected]> Wed, 17 Mar 2004 11:29:38 -0500 (EST)
Newsgroups gmane.network.everybuddy.user
Message-ID <[email protected]>
On Tue, 16 Mar 2004, A. Craig West wrote:

> First, I want to say that ebnc is cool... This is, of course, leading up to
> the inevitable bug reports :-) ebnc doesn't appear to be paying attention to
> buddy_logout events. It would also be nice if it responded to status changes,
> but that's more of a feature request :-)
> Things I want in ebnc would be status display, the abilitly to close tabs,
> at least conversation tabs, and dialog support. Right now it doesn't show
> error messages...

Okay, ebnc is cooler than I thought... F9 closes a conversation tab. I have
a trivial patch to fix buddy_logout, too....

--------- Patch Begins ------------
Index: ebncurses.cpp
===================================================================
--- ebncurses.cpp	(revision 307)
+++ ebncurses.cpp	(working copy)
@@ -817,7 +817,12 @@
   // "buddy_logout" "Local buddy account" "Service name" "Buddy handle"
   else if (!strcmp(command[0], "buddy_logout"))
   {
-    // TODO
+    Service *service = services->find(command[2]);
+    LocalAccount *localAccount = localAccounts->find(service, command[1]);
+    ContactAccount *contactAccount = localAccount->findAccount(command[3]);
+    contactAccount->logout();
+    if (currentWin == 2)
+      drawWin();
   }
   // "buddy_login" "Local buddy account" "Service name" "Buddy handle"
   else if (!strcmp(command[0], "buddy_login"))
--------- Patch Ends ------------

-- 
Craig West         Ph: (416) 666-1645	|  It's not a bug,
[email protected]              	|  It's a feature...