| View previous topic :: View next topic |
| Author |
Message |
Lupo Voice
Joined: 20 Dec 2008 Posts: 17
|
Posted: Mon Dec 29, 2008 2:14 pm Post subject: proc for mode checking |
|
|
| does anybody have a proc for user mode checking? preferably something similar than the builtin isop and ishalfop (check returns one or zero) |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
|
| Back to top |
|
 |
Lupo Voice
Joined: 20 Dec 2008 Posts: 17
|
Posted: Mon Dec 29, 2008 3:11 pm Post subject: |
|
|
| its to be able to do checks if someone are admins or owners of channels... (unrealircd). it should be possible by using /who or /whois but i don't know how to do this. afaik, eggdrop has no builtin isowner or isadmin commands. |
|
| Back to top |
|
 |
incith Master

Joined: 23 Apr 2005 Posts: 275 Location: Canada
|
Posted: Mon Dec 29, 2008 4:10 pm Post subject: |
|
|
You can only check public modes... such as +o and etc. User modes are private, such as +i and +w etc. _________________ ; Answer a few unanswered posts! |
|
| Back to top |
|
 |
Lupo Voice
Joined: 20 Dec 2008 Posts: 17
|
Posted: Mon Dec 29, 2008 4:11 pm Post subject: |
|
|
| ok... can someone make me a proc to check public modes then? |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Wed Dec 31, 2008 3:41 am Post subject: |
|
|
If this info is returned using /who or /whois then you need to supply more information such as the raw numbers and the format of the replies on the ircd. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
Lupo Voice
Joined: 20 Dec 2008 Posts: 17
|
Posted: Wed Dec 31, 2008 7:37 am Post subject: |
|
|
Thommey of tclhelp.net provided me the code for isowner and isadmin routines for unrealircd. If anyone else is interested, I will bundle them with my public commands script when it's final (really getting close now), and these functions will also be available in the upcoming eggdrop 10.6.20.
Sir_Fz : kindly check my follow up post in my other thread for the !warn command. Thank you.  |
|
| Back to top |
|
 |
|