| View previous topic :: View next topic |
| Author |
Message |
Kazymyr Voice
Joined: 11 Dec 2006 Posts: 5
|
Posted: Mon Dec 11, 2006 7:09 am Post subject: Get Umodes script. [SOLVED] |
|
|
Hello
I would like a script wich can get the user modes of a "user" which get into a chan.
This is to find out if the user has got some oper flags like
o -> local oper
O -> global oper
C -> coadmin
A -> admin
a -> services-admin
N -> netadmin
This is not the user flags/mode into the chan.
I want the bot to check if the user has on of those flags before using a proc.
This i alsmost know how to do it, but i can't the bot tho check the flag.
I tried raw commands, but without sucess.
On my script, i guess i will put an if { bla bla bla == bla bla}
Anyone got an idea how can i do that ?
Thank you.
btw : i did a search on the forum, i find something there : http://forum.egghelp.org/viewtopic.php?t=12160&highlight=umode but i don't know how to use it 
Last edited by Kazymyr on Tue Dec 12, 2006 8:58 pm; edited 1 time in total |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Mon Dec 11, 2006 1:19 pm Post subject: |
|
|
Ircop status would have to be caught by the RPL_WHOISOPERATOR whois-reply numeric. As for the other umodes, I would'nt know as I hav'nt found these documented in any de-facto irc protocol standard... _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
Kazymyr Voice
Joined: 11 Dec 2006 Posts: 5
|
Posted: Mon Dec 11, 2006 4:20 pm Post subject: |
|
|
| Sir_Fz wrote: | | So, these are channel modes? |
No theses are user flags. |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Mon Dec 11, 2006 6:12 pm Post subject: |
|
|
Yeah, already figured that out but how are these flags detected? via whois or how, you have to be more clear so we would be able to implement something for you. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Mon Dec 11, 2006 8:30 pm Post subject: |
|
|
| Sir_Fz wrote: | Yeah, already figured that out but how are these flags detected? via whois or how, you have to be more clear so we would be able to implement something for you. |
IRC/2 Numeric List _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Tue Dec 12, 2006 1:28 am Post subject: |
|
|
| Sir_Fz wrote: | Yeah, already figured that out but how are these flags detected? via whois or how, you have to be more clear so we would be able to implement something for you. |
they aren't, that guy is confused; you can't get user modes of other users even if you're one of those petty bureaucrats otherwise known as ircops
a limited set of indications about user's vanity flags is usually available as specific (and almost always non-standard) WHOIS numeric replies, sometimes WHO reply and very rarely USERHOST reply _________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
| Back to top |
|
 |
Kazymyr Voice
Joined: 11 Dec 2006 Posts: 5
|
Posted: Tue Dec 12, 2006 5:56 am Post subject: |
|
|
Actually, yes my bot can read my umode, i put on it a restricted oper acces.
So yes he can.
For the irc numeric, i guess it would be :
379 RPL_WHOISMODES Unreal
or
313 RPL_WHOISOPERATOR RFC1459 <nick> :<privileges> Reply to WHOIS - User has IRC Operator privileges
> The whois look like that :
<nick> is using modes +irOxt
<nick> is a Local IRC Operator |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Tue Dec 12, 2006 11:10 am Post subject: |
|
|
| Kazymyr wrote: |
Actually, yes my bot can read my umode, i put on it a restricted oper acces.
So yes he can.
|
no he can't
(btw how do you know it's not she?  _________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
| Back to top |
|
 |
Kazymyr Voice
Joined: 11 Dec 2006 Posts: 5
|
Posted: Tue Dec 12, 2006 11:16 am Post subject: |
|
|
| demond wrote: | | Kazymyr wrote: |
Actually, yes my bot can read my umode, i put on it a restricted oper acces.
So yes he can.
|
no he can't
(btw how do you know it's not she?  |
I named him :p
A bot can whois, it can see the idle time, which is a whois line.
Why it will not see the umode line is it gets the correct acces ? like umode +O ? |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Tue Dec 12, 2006 8:20 pm Post subject: |
|
|
As demond previously stated, "you can't get user modes of other users".
313 & 614 will return status:
| Quote: | * [FaseFinatic] is an IRC Operator
* [FaseFinatic] is available for help. |
I tested 379 with XChat on Unreal some time ago and got nothing. _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
Kazymyr Voice
Joined: 11 Dec 2006 Posts: 5
|
Posted: Tue Dec 12, 2006 8:58 pm Post subject: |
|
|
Oh thank you anyway. |
|
| Back to top |
|
 |
|