-$Log$
+ $Log$
+ Revision 1.10 1999/11/15 05:05:13 smw
+ Added some checks for connectivity. The roomview commands were locking
+ Daphne if the program wasn't connected. Now it's not. All nice and
+ stable.
+
Revision 1.9 1999/11/15 04:19:18 smw
Killed the refresh timer in who.cpp
Updated the who function so that refreshes are no longer automated, but
if (whichbutton.GetId() == BUTTON_CLOSE) {
delete this;
/* } else if (whichbutton.GetId() == BUTTON_READNEW) {
+ if (citadel->IsConnected()==FALSE) {
+ wxMessageBox("You are not connected to a BBS.");
do_readloop("MSGS NEW"); */
} else if (whichbutton.GetId() == BUTTON_READALL) {
+ if (citadel->IsConnected()==FALSE) {
+ wxMessageBox("You are not connected to a BBS.");
+ return;
+ } else
do_readloop("MSGS ALL");
} else if (whichbutton.GetId() == BUTTON_ENTER) {
+ if (citadel->IsConnected()==FALSE) {
+ wxMessageBox("You are not connected to a BBS.");
+ return;
+ } else
new EnterMessage(citsock, citMyMDI, ThisRoom, RoomFlags);
} else if (whichbutton.GetId() == BUTTON_SKIP) {
+ if (citadel->IsConnected()==FALSE) {
+ wxMessageBox("You are not connected to a BBS.");
+ return;
+ } else
new RoomView(citsock, citMyMDI, RoomList->GetNextRoom());
delete this;
} else if (whichbutton.GetId() == BUTTON_GOTO) {
+ if (citadel->IsConnected()==FALSE) {
+ wxMessageBox("You are not connected to a BBS.");
+ return;
+ } else
sendcmd = "SLRP HIGHEST"; // mark messages as read
citsock->serv_trans(sendcmd, recvcmd, xferbuf, ThisRoom);
new RoomView(citsock, citMyMDI, RoomList->GetNextRoom());
delete this;
} else if (whichbutton.GetId() == BUTTON_ZAP) {
+ if (citadel->IsConnected()==FALSE) {
+ wxMessageBox("You are not connected to a BBS.");
+ return;
+ } else
sendcmd = "FORG"; //Zap (forget) room
citsock->serv_trans(sendcmd, recvcmd, xferbuf, ThisRoom);
new RoomView(citsock, citMyMDI, "_BASEROOM_");