This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Get Umodes script. [SOLVED]

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
K
Kazymyr
Voice
Posts: 5
Joined: Mon Dec 11, 2006 6:57 am

Get Umodes script. [SOLVED]

Post by Kazymyr »

Hello :D

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? ... ight=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.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

So, these are channel modes?
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

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
K
Kazymyr
Voice
Posts: 5
Joined: Mon Dec 11, 2006 6:57 am

Post by Kazymyr »

Sir_Fz wrote:So, these are channel modes?
No theses are user flags.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Yeah, already figured that out :lol: 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.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Sir_Fz wrote:Yeah, already figured that out :lol: 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
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

Sir_Fz wrote:Yeah, already figured that out :lol: 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: Select all

 tag when posting logs, code
K
Kazymyr
Voice
Posts: 5
Joined: Mon Dec 11, 2006 6:57 am

Post by Kazymyr »

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
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

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: Select all

 tag when posting logs, code
K
Kazymyr
Voice
Posts: 5
Joined: Mon Dec 11, 2006 6:57 am

Post by Kazymyr »

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 ?
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

As demond previously stated, "you can't get user modes of other users".

313 & 614 will return status:
* [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
K
Kazymyr
Voice
Posts: 5
Joined: Mon Dec 11, 2006 6:57 am

Post by Kazymyr »

:(

Oh thank you anyway.
Post Reply