[Bobbot-cvs] Plugins/Sphere/LogManagement LogEntry.cs,1.1,1.2 LogManager.cs,1.6,1.7
Status: Alpha
Brought to you by:
iainmckay
From: Mr S. C. <mrs...@us...> - 2005-07-17 21:09:12
|
Update of /cvsroot/bobbot/Plugins/Sphere/LogManagement In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24008/Sphere/LogManagement Modified Files: LogEntry.cs LogManager.cs Log Message: - Added Accounting.AccountsReader for reading accounts directly from a Sphere Accounts File - Added Accounting.MultiAccountSearch for finding accounts with matching IPs or Passwords. - Added more log messages to find with 'log list' - Added ability o disable Jail and Bans systems by placing '-1' as their database file paths. - Updated Messages from sphere console. Index: LogManager.cs =================================================================== RCS file: /cvsroot/bobbot/Plugins/Sphere/LogManagement/LogManager.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** LogManager.cs 26 Feb 2005 22:41:38 -0000 1.6 --- LogManager.cs 17 Jul 2005 21:08:55 -0000 1.7 *************** *** 108,111 **** --- 108,114 ---- m_LogEntries.Add(new LogEntry(msg, args.Message)); + else if (msg is PlayerPunishedMessage) + m_LogEntries.Add(new LogEntry(msg, args.Message)); + *************** *** 275,289 **** { HouseKillingMessage msg = (HouseKillingMessage)entry.Entry; ! return String.Format("{0} House Killing. {1} Victim={2}(Name={3} Position={4}) Aggressor={5}(Name={6} Position={7})", entry.Time.ToString("[dd/MM/yy - hh:mm]"), handle, msg.VictimUid, msg.VictimName, msg.VictimP, msg.AggressorUid, msg.AggressorName, msg.AggressorP); } else if (entry.Entry is SkillNukeMessage) { SkillNukeMessage msg = (SkillNukeMessage)entry.Entry; ! return String.Format("{0} Skill Nuke. {1} Player={2}({3}). Skill={4} (Before Nuke: {5})", entry.Time.ToString("[dd/MM/yy - hh:mm]"), handle, msg.Name, msg.Account, msg.SkillName, msg.SkillBefore); } else if (entry.Entry is RideLostMessage) { RideLostMessage msg = (RideLostMessage)entry.Entry; ! return String.Format("{0} Ride Lost. {1} Type=0{2:x} Serial=0{3:x} Name={4}", entry.Time.ToString("[dd/MM/yy - hh:mm]"), handle, msg.ID, msg.Serial, msg.Name); } return null; --- 278,302 ---- { HouseKillingMessage msg = (HouseKillingMessage)entry.Entry; ! return String.Format("{0} House Killing. {1} Victim={2}(Name={3} Position={4}) Aggressor={5}(Name={6} Position={7})", entry.Time.ToString("[dd/MM/yy - HH:mm]"), handle, msg.VictimUid, msg.VictimName, msg.VictimP, msg.AggressorUid, msg.AggressorName, msg.AggressorP); } else if (entry.Entry is SkillNukeMessage) { SkillNukeMessage msg = (SkillNukeMessage)entry.Entry; ! return String.Format("{0} Skill Nuke. {1} Player={2}({3}). Skill={4} (Before Nuke: {5})", entry.Time.ToString("[dd/MM/yy - HH:mm]"), handle, msg.Name, msg.Account, msg.SkillName, msg.SkillBefore); } else if (entry.Entry is RideLostMessage) { RideLostMessage msg = (RideLostMessage)entry.Entry; ! return String.Format("{0} Ride Lost. {1} Type=0{2:x} Serial=0{3:x} Name={4}", entry.Time.ToString("[dd/MM/yy - HH:mm]"), handle, msg.ID, msg.Serial, msg.Name); ! } ! else if (entry.Entry is PlayerPunishedMessage) ! { ! PlayerPunishedMessage msg = (PlayerPunishedMessage)entry.Entry; ! return String.Format("{0} Player Jailed. {1} GM={2} Player={3} Length={4} Was At={5}", entry.Time.ToString("[dd/MM/yy - HH:mm]"), handle, msg.GMAccount, msg.PlayerAccount, msg.Length, msg.Position); ! } ! else if (entry.Entry is ResKillingMessage) ! { ! ResKillingMessage msg = (ResKillingMessage)entry.Entry; ! return String.Format("{0} Player Res-Killing. {1} Player={2}", entry.Time.ToString("[dd/MM/yy - HH:mm]"), handle, msg.PlayerAccount); } return null; Index: LogEntry.cs =================================================================== RCS file: /cvsroot/bobbot/Plugins/Sphere/LogManagement/LogEntry.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** LogEntry.cs 15 Feb 2005 21:47:30 -0000 1.1 --- LogEntry.cs 17 Jul 2005 21:08:55 -0000 1.2 *************** *** 121,129 **** m_Entry = SphereConnection.Instance.ParseMessage(m_EntryRaw); - m_EntryType = m_Entry.GetType(); if (m_Entry == null) return false; return true; } --- 121,129 ---- m_Entry = SphereConnection.Instance.ParseMessage(m_EntryRaw); if (m_Entry == null) return false; + m_EntryType = m_Entry.GetType(); return true; } |