LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 02-21-2007, 11:47 AM   #1
Anonycat
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.
 
  


Reply

Tags
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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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


All times are GMT -5. The time now is 01:37 PM.

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