Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 02-21-2007, 12:47 PM   #1
LQ Newbie
Registered: Jan 2006
Distribution: Fedora
Posts: 6

Rep: Reputation: 0
Irssi scripting question (detecting channel/usermodes)

I'm working on scripting an Irssi bot, and I want some of the functions to be available only to users with +a (&; usually called "superop" or "admin") or +q (~; "owner"). I know "$server->channel_find($target)->nick_find($nick)->{op}" runs a check for +o, but what's the syntax to check for the higher levels?

Alternatively, I can set up a whitelist of all names that are supposed to be on the +aq lists, and check for that name, with an additional check in place that requires the user to be registered (umode +r) so that random users can't simply wait for one of them to quit, change to that name, and go crazy for a minute before their name is automatically changed. But I don't know what to put in the {} to check for that either; I'd presume that the channel_find term would be removed since I'm looking for a umode rather than a chmode.


mode, script

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
irssi channel join automation noir911 Linux - General 1 06-30-2006 08:31 AM
fibre channel question ronanio Linux - Enterprise 1 09-06-2005 11:40 PM
Unix Shell Scripting, detecting the enter key WinterSt Programming 7 09-01-2004 09:27 AM
irssi-scripting w1zard Programming 0 03-23-2004 07:19 PM
Hard drive in primary channel showing in secondary channel Ale Linux - Hardware 2 02-20-2004 12:39 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:03 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration