|
|
@@ -72,8 +72,8 @@ function pgsh(ev) {
|
|
|
'href="http://slightlymagic.com.au">slightlymagic.com.au</a>')
|
|
|
}
|
|
|
this.su = function(args) {
|
|
|
- if (self.su !== true) {
|
|
|
- self.su = true
|
|
|
+ if (self.su_active !== true) {
|
|
|
+ self.su_active = true
|
|
|
if (!self.su_warned) {
|
|
|
self.su_warned = true
|
|
|
show('We trust you have received the usual lecture from the ' +
|
|
|
@@ -87,8 +87,8 @@ function pgsh(ev) {
|
|
|
}
|
|
|
}
|
|
|
this.exit = function(args) {
|
|
|
- if (self.su) {
|
|
|
- self.su = false
|
|
|
+ if (self.su_active) {
|
|
|
+ self.su_active = false
|
|
|
ev.trigger('prompt_set', self.prompt)
|
|
|
return
|
|
|
}
|