Thema: Delphi is OP or not

Einzelnen Beitrag anzeigen

GilbertCD

Registriert seit: 27. Dez 2005
3 Beiträge
 
#1

is OP or not

  Alt 27. Dez 2005, 15:48
How to know if one Nick from IRC is @(OP) or not. This procedure:

Delphi-Quellcode:
{ Return True if the string Nick is a channel operator. }
function TIdIRC.IsOp(ANick: String): Boolean;
begin
  Result := (Length(Nick)>0) and (Nick[1] = '@'); {Do not Localize}
end;
is not work, be cause i`m not obtain this char '@' from AUser.Nick. Sorry for me english.
  Mit Zitat antworten Zitat