Fixes #1075. Handle the 'reason' parameter to on_session_close
git-svn-id: file:///home/svn/framework3/trunk@8781 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
13410d4daa
commit
f53a56f147
|
@ -22,7 +22,7 @@ class Plugin::EventSounds < Msf::Plugin
|
|||
play_sound(event)
|
||||
end
|
||||
|
||||
def on_session_close(session)
|
||||
def on_session_close(session, reason='')
|
||||
sid = session.sid.to_s
|
||||
play_sound('session')
|
||||
sid.unpack("C*").each do |c|
|
||||
|
|
Loading…
Reference in New Issue