egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Get Umodes script. [SOLVED]

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
Kazymyr
Voice


Joined: 11 Dec 2006
Posts: 5

PostPosted: Mon Dec 11, 2006 7:09 am    Post subject: Get Umodes script. [SOLVED] Reply with quote

Hello Very Happy

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 Sad


Last edited by Kazymyr on Tue Dec 12, 2006 8:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Mon Dec 11, 2006 1:05 pm    Post subject: Reply with quote

So, these are channel modes?
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Mon Dec 11, 2006 1:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
Kazymyr
Voice


Joined: 11 Dec 2006
Posts: 5

PostPosted: Mon Dec 11, 2006 4:20 pm    Post subject: Reply with quote

Sir_Fz wrote:
So, these are channel modes?


No theses are user flags.
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Mon Dec 11, 2006 6:12 pm    Post subject: Reply with quote

Yeah, already figured that out Laughing 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
View user's profile Send private message Visit poster's website
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Mon Dec 11, 2006 8:30 pm    Post subject: Reply with quote

Sir_Fz wrote:
Yeah, already figured that out Laughing 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
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Tue Dec 12, 2006 1:28 am    Post subject: Reply with quote

Sir_Fz wrote:
Yeah, already figured that out Laughing 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
View user's profile Send private message Visit poster's website
Kazymyr
Voice


Joined: 11 Dec 2006
Posts: 5

PostPosted: Tue Dec 12, 2006 5:56 am    Post subject: Reply with quote

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
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Tue Dec 12, 2006 11:10 am    Post subject: Reply with quote

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? Smile
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
Kazymyr
Voice


Joined: 11 Dec 2006
Posts: 5

PostPosted: Tue Dec 12, 2006 11:16 am    Post subject: Reply with quote

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? Smile


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
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Tue Dec 12, 2006 8:20 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Kazymyr
Voice


Joined: 11 Dec 2006
Posts: 5

PostPosted: Tue Dec 12, 2006 8:58 pm    Post subject: Reply with quote

Sad

Oh thank you anyway.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber