mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Add an optional argument to /znc jump
If you have 10 servers in your server list and you want to directly jump to e.g. irc.foo.bar, you can now do "/znc jump irc.foo.bar". Thanks to PsWii60 for constantly bugging me for this. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2109 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
11
User.cpp
11
User.cpp
@@ -925,6 +925,17 @@ CServer* CUser::GetCurrentServer() const {
|
||||
return m_vServers[uIdx];
|
||||
}
|
||||
|
||||
bool CUser::SetNextServer(const CServer* pServer) {
|
||||
for (unsigned int a = 0; a < m_vServers.size(); a++) {
|
||||
if (m_vServers[a] == pServer) {
|
||||
m_uServerIdx = a;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CUser::CheckPass(const CString& sPass) const {
|
||||
switch (m_eHashType)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user