IsUser MPL function, newuserapp bugfix
This commit is contained in:
parent
03a06fa877
commit
1d45f04349
|
@ -4205,3 +4205,8 @@
|
||||||
|
|
||||||
If the newuserapp.mpx exists in the scripts directory, it will be
|
If the newuserapp.mpx exists in the scripts directory, it will be
|
||||||
executed instead of the normal application process.
|
executed instead of the normal application process.
|
||||||
|
|
||||||
|
+ New MPL function IsUser takes a string value which can contain either
|
||||||
|
a user realname, handle, or user perm index number. If the user exists,
|
||||||
|
it will return a TRUE result or FALSE if the user does not exist.
|
||||||
|
|
||||||
|
|
|
@ -93,6 +93,7 @@ Begin
|
||||||
UserNum := -1;
|
UserNum := -1;
|
||||||
ThisUser.ScreenSize := Config.DefScreenSize;
|
ThisUser.ScreenSize := Config.DefScreenSize;
|
||||||
ThisUser.Theme := Config.DefThemeFile;
|
ThisUser.Theme := Config.DefThemeFile;
|
||||||
|
ThisUser.StartMenu := Config.DefStartMenu;
|
||||||
ThisUser.DateType := 1;
|
ThisUser.DateType := 1;
|
||||||
ThisUser.HotKeys := True;
|
ThisUser.HotKeys := True;
|
||||||
ThisUser.RealName := 'Unknown';
|
ThisUser.RealName := 'Unknown';
|
||||||
|
@ -105,6 +106,8 @@ Begin
|
||||||
ThisUser.Archive := Config.qwkArchive;
|
ThisUser.Archive := Config.qwkArchive;
|
||||||
ThisUser.LastFGroup := Config.StartFGroup;
|
ThisUser.LastFGroup := Config.StartFGroup;
|
||||||
ThisUser.LastMGroup := Config.StartMGroup;
|
ThisUser.LastMGroup := Config.StartMGroup;
|
||||||
|
ThisUser.UseLBQuote := True;
|
||||||
|
ThisUser.UseFulLChat := True;
|
||||||
|
|
||||||
IgnoreGroup := False;
|
IgnoreGroup := False;
|
||||||
InChat := False;
|
InChat := False;
|
||||||
|
|
|
@ -286,8 +286,9 @@ Begin
|
||||||
AddProc ({$IFDEF MPLPARSER} 'strmci', {$ENDIF} 's', iString); // 535
|
AddProc ({$IFDEF MPLPARSER} 'strmci', {$ENDIF} 's', iString); // 535
|
||||||
AddProc ({$IFDEF MPLPARSER} 'getcharxy', {$ENDIF} 'bb', iChar); // 536
|
AddProc ({$IFDEF MPLPARSER} 'getcharxy', {$ENDIF} 'bb', iChar); // 536
|
||||||
AddProc ({$IFDEF MPLPARSER} 'getattrxy', {$ENDIF} 'bb', iByte); // 537
|
AddProc ({$IFDEF MPLPARSER} 'getattrxy', {$ENDIF} 'bb', iByte); // 537
|
||||||
AddProc ({$IFDEF MPLPARSER} 'putthisuser' {$ENDIF} '', iNone); // 538
|
AddProc ({$IFDEF MPLPARSER} 'putthisuser', {$ENDIF} '', iNone); // 538
|
||||||
AddProc ({$IFDEF MPLPARSER} 'putuser', {$ENDIF} 'l', iNone); // 539
|
AddProc ({$IFDEF MPLPARSER} 'putuser', {$ENDIF} 'l', iNone); // 539
|
||||||
|
AddProc ({$IFDEF MPLPARSER} 'isuser', {$ENDIF} 's', iBool); // 540
|
||||||
|
|
||||||
{ END OF PROCEDURE DEFINITIONS }
|
{ END OF PROCEDURE DEFINITIONS }
|
||||||
|
|
||||||
|
|
|
@ -1883,6 +1883,10 @@ Begin
|
||||||
End;
|
End;
|
||||||
538 : PutUserVars(Session.User.ThisUser);
|
538 : PutUserVars(Session.User.ThisUser);
|
||||||
539 : PutUserRecord(Param[1].L);
|
539 : PutUserRecord(Param[1].L);
|
||||||
|
540 : Begin
|
||||||
|
TempBool := Session.User.FindUser(Param[1].S, False);
|
||||||
|
Store (TempBool, 1);
|
||||||
|
End;
|
||||||
End;
|
End;
|
||||||
End;
|
End;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue