• GI menu command don't work on python2 script...

    From Nicola Mettimano@2:335/601 to g00r00 on Thu Feb 2 13:48:46 2023
    Hello I am looking into ThreatSentry mod (by Phenom) code to find the problem. I see taht menucmd('GI') does not bring any results; i tried menucmd('-N', 'question') just for testing and it work, so i don't understand what could be the problem.
    Is there any other method to disconnect/hangup from a pytho2 script?
    Thanks.

    -------------------------------------------------
    La violenza Š l'ultimo rifugio degli incapaci!


    --- MBSE BBS v1.0.8 (Linux-x86_64)
    * Origin: Agency HUB, Dunedin - New Zealand (2:335/601@fidonet)
  • From g00r00@1:129/215 to Nicola Mettimano on Fri Feb 3 05:27:36 2023
    Hello I am looking into ThreatSentry mod (by Phenom) code to find the problem. I see taht menucmd('GI') does not bring any results; i tried

    Are you exiting the script after you run it?

    .... Old musicians never die. They just decompose!


    --- MBSE BBS v1.0.8 (Linux-x86_64)
    * Origin: Agency HUB, Dunedin - New Zealand (1:129/215@fidonet)
  • From Nicola Mettimano@2:335/601 to g00r00 on Fri Feb 3 12:57:55 2023
    Are you exiting the script after you run it?

    Sorry I can't understand, this is my python scipt (two lines... is a test):

    from mystic_bbs import *
    writeln('just a test')
    menucmd('GI')

    When I invoke it with GY from a menu entry I see Just a test but nothing else happens.

    -------------------------------------------------
    La violenza Š l'ultimo rifugio degli incapaci!


    --- MBSE BBS v1.0.8 (Linux-x86_64)
    * Origin: Agency HUB, Dunedin - New Zealand (2:335/601@fidonet)
  • From g00r00@1:129/215 to Nicola Mettimano on Fri Feb 3 09:30:38 2023
    from mystic_bbs import *
    writeln('just a test')
    menucmd('GI')

    When I invoke it with GY from a menu entry I see Just a test but nothing else happens.

    You are not calling the menucmd function properly. It has two parameters the first is the menu command and the second is data.

    Change it to this and it should work:

    menucmd('GI', '')

    .... "No comment" is a comment.


    --- MBSE BBS v1.0.8 (Linux-x86_64)
    * Origin: Agency HUB, Dunedin - New Zealand (1:129/215@fidonet)
  • From Nicola Mettimano@2:335/601 to g00r00 on Fri Feb 3 16:46:41 2023
    Thank you very much, you are always very kind and above all you always solve my
    problems ;-)

    -------------------------------------------------
    La violenza Š l'ultimo rifugio degli incapaci!


    --- MBSE BBS v1.0.8 (Linux-x86_64)
    * Origin: Agency HUB, Dunedin - New Zealand (2:335/601@fidonet)
  • From g00r00@1:129/215 to Nicola Mettimano on Fri Feb 3 11:28:54 2023
    Thank you very much, you are always very kind and above all you always solve my problems ;-)

    Thanks! Happy to help and I'm glad it is resolved!

    .... One tequila, two tequila, three tequila, floor.


    --- MBSE BBS v1.0.8 (Linux-x86_64)
    * Origin: Agency HUB, Dunedin - New Zealand (1:129/215@fidonet)