Update of /cvsroot/sphere-axis/Axis
In directory usw-pr-cvs1:/tmp/cvs-serv3252
Modified Files:
generaltab.cpp
Log Message:
BlockIP will now work with newer versions of Sphere (scripts have to be
loaded, though).
Resolves tracker #553441.
Index: generaltab.cpp
===================================================================
RCS file: /cvsroot/sphere-axis/Axis/generaltab.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** generaltab.cpp 1 May 2002 03:33:11 -0000 1.4
--- generaltab.cpp 8 May 2002 02:04:33 -0000 1.5
***************
*** 402,406 ****
this->m_ceIPBlock.GetWindowText(csIP);
CString csCmd;
! csCmd.Format(".blockip %s", csIP);
SendToUO(csCmd);
}
--- 402,409 ----
this->m_ceIPBlock.GetWindowText(csIP);
CString csCmd;
! if ( Main->m_pScripts->m_bNewFormat )
! csCmd.Format(".serv.blockip %s", csIP);
! else
! csCmd.Format(".blockip %s", csIP);
SendToUO(csCmd);
}
***************
*** 411,415 ****
this->m_ceIPBlock.GetWindowText(csIP);
CString csCmd;
! csCmd.Format(".unblockip %s", csIP);
SendToUO(csCmd);
}
--- 414,421 ----
this->m_ceIPBlock.GetWindowText(csIP);
CString csCmd;
! if ( Main->m_pScripts->m_bNewFormat )
! csCmd.Format(".serv.unblockip %s", csIP);
! else
! csCmd.Format(".unblockip %s", csIP);
SendToUO(csCmd);
}
|