dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.0.9
swingha has quit [Ping timeout: 260 seconds]
<dominikh>
none I'm aware of. never had a need because networks like freenode already provide nickserv, and you can check if the user is logged in there
<AJ-Lee>
What would be the syntax to check that, if say, I wanted to write it into a !quit plugin
<dominikh>
if a user is identified with a supported service (such as nickserv, or Q on quakenet), his authname will be set
<dominikh>
!eval m.user.authname
<Cinchy>
"DominikH"
<dominikh>
!eval User("AJ-Lee").authname
<Cinchy>
nil
<AJ-Lee>
Alright, thanks man. I want to apologize for being on edge yesterday. My mom started chemo that morning and I was running on very little sleep.
<dominikh>
no problem. and best of luck to your mother.
<AJ-Lee>
Thanks.
Agent08 has joined #cinch
Agent08 has quit [Remote host closed the connection]
Agent08 has joined #cinch
Agent08 has quit [Ping timeout: 240 seconds]
sindork has quit [Quit: No Ping reply in 180 seconds.]
sindork has joined #cinch
Agent08 has joined #cinch
Agent08 has quit [Remote host closed the connection]
Agent08 has joined #cinch
Agent08 has quit [Ping timeout: 272 seconds]
Spami has quit [Quit: This computer has gone to sleep]
<AJ-Lee>
Yeah I'm still kinda lost on how to integrate that command into my !die script.
<dominikh>
check if the user's authname equals the authname of who is allowed to use the command.
<AJ-Lee>
Right, I get that part, I just don't know how to make the script check it...basically I don't know how to write it into the script.
<dominikh>
if m.user.authname != "IWhoIsAwesome"; return; end
<AJ-Lee>
Oh okay
<AJ-Lee>
I get it
postmodern has joined #cinch
<AJ-Lee>
dominikh: do you have any idea why I'm getting the output "undefined local variable or method `bot" with this: http://pastebin.com/Hig1SkKW
<dominikh>
seriously, fix your indentation.
<dominikh>
especially because then you'd see your error.
<AJ-Lee>
I think I fixed my indentation, but uh, I don't see my error.
<dominikh>
what purpose would it have to call bot.quit outside of a method? what would trigger the quitting?
<dominikh>
if that there worked (which it can't for various reasons), it'd quit as soon as the plugin was loaded.
<AJ-Lee>
So what I did wrong was what, but it after I ended the method?
<AJ-Lee>
put*
<dominikh>
yes.
<AJ-Lee>
I swear to you that with each time you help me, I need help less. :( http://pastebin.com/fvMYCmPv Why isn't this working, the bot does a whois on me when I !die, but nothing else happens. I am authenticated as "Risardyo" so it must be in my code.
<dominikh>
honestly, what is it with you and indentation? I'm trying not to be upset, but showing code like that, even if valid, is the equ vi lence of com..pletely butch-ering
<dominikh>
punctuation
<dominikh>
and spelling, apparently.
<dominikh>
what IRC network are you testing that on?
<AJ-Lee>
It's running UnrealIRC and Anope
<dominikh>
I'm interested in the specific network, if it's not private. and your nickname on there
<AJ-Lee>
irc.sinsira.net my nick is Risardyo
<dominikh>
mhm, should work technically. one second
<AJ-Lee>
Okay
rikai has quit [Remote host closed the connection]
<dominikh>
are you sure you're loading the plugin?
<dominikh>
if you take the check out, does the bot quit?
<dominikh>
meh… it's giving you an exception
<dominikh>
you should read the exception :)
<dominikh>
there's no variable "msg"
<AJ-Lee>
I'm sure the plugin is loading, I'm not getting an exception
<AJ-Lee>
loaded*
<AJ-Lee>
So it should be m.user.nick
<dominikh>
either it's not loaded, you're testing with the wrong user, not invoking the command correctly, or getting an exception. those are the only 4 possibilities
<dominikh>
yes.
<dominikh>
but if it's not even raising an exception, the issue lies elsewhere.
<AJ-Lee>
Changing to m.user.nick worked
<dominikh>
then there was an exception :)
<AJ-Lee>
Would it have been in the beginning of the output when the bot started?
<dominikh>
nope, when you invoke the command
<dominikh>
every time
swingha has joined #cinch
<AJ-Lee>
When using bot.oper to gain operator rights I am litterally going: bot.oper(pass, OperName). Now, the exception is telling me that I'm messing up there, so I have the syntax wrong apparently. According to the docs that's what it looks like but I always read those incorrectly. So, can I get some help?
<dominikh>
from what I remember, there's no oper method in the release version of Cinch, only in the development version
<AJ-Lee>
s/litterally/literally
<dominikh>
what's the exception?
<dominikh>
nvm, I am right. 2.0.9 doesn't have that method
<dominikh>
you'll need to use bot.irc.send "OPER ..." instead
<dominikh>
even though that exception is caused by something else...
<dominikh>
probably... forgetting quotation marks around the strings?
<AJ-Lee>
Yeah.
<dominikh>
well I'm gone now, bye.
<AJ-Lee>
Well I purposely didn't place them there, because the docs didn't have them and when I tried the quotations previously it hadn't worked. (Trial and error)
<AJ-Lee>
Alright, see ya. Thanks for your help.
<dominikh>
the docs don't have an example, they show the function signature.
<AJ-Lee>
Yeah.
<dominikh>
you won't see any "" anywhere
<dominikh>
anyway, bye
kludge` has quit [Ping timeout: 245 seconds]
kludge` has joined #cinch
space_ has joined #cinch
space has quit [Ping timeout: 272 seconds]
postmodern has quit [Quit: Leaving]
rikai has joined #cinch
<AJ-Lee>
If you wanted to add multiple authnames to m.user.authname does anyone know the syntax for that?
rikai_ has joined #cinch
rikai has quit [Ping timeout: 246 seconds]
Agent08 has joined #cinch
Agent08 has quit [Remote host closed the connection]
Agent08 has joined #cinch
Agent08 has quit [Ping timeout: 252 seconds]
Agent08 has joined #cinch
SkyBirdSoar has joined #cinch
<SkyBirdSoar>
Okay, I tried to do this: http://pastie.org/8445580 but only '~!reload' works but not 'Hello Clear'. Anyone knows why?
<Netfeed>
doesn't that match !Hello Clear ?
<SkyBirdSoar>
Even ~!sayhello x doesn't work
<Netfeed>
add :use_prefix => false to match
<SkyBirdSoar>
okay I'll try that
<Netfeed>
and say hello should be !~!sayhello i think
<Netfeed>
you can set bot.prefix = '~!' and it'll be your default prefix
<SkyBirdSoar>
Where do I put ':use_prefix => false'?
<SkyBirdSoar>
Okay I found out
<SkyBirdSoar>
My class wasn't reloading
<SkyBirdSoar>
many thanks on your advice
<SkyBirdSoar>
So how do I reload Commands.rb?
<waxjar>
ctrl + c, arrow up, enter :P
space_ has quit [Ping timeout: 240 seconds]
<Netfeed>
+1
<SkyBirdSoar>
Dynamically?
<SkyBirdSoar>
Well I got Hello Clear loading dynamically
<SkyBirdSoar>
Yup got that working
<SkyBirdSoar>
Thanks a lot Netfeed
<SkyBirdSoar>
:)
SkyBirdSoar has quit [Quit: Leaving]
swingha has quit [Quit: WeeChat 0.4.2]
SkyBirdSoar has joined #cinch
<SkyBirdSoar>
How do I do /mem
<SkyBirdSoar>
/me*
<Netfeed>
bot.action i thin
<Netfeed>
think
<SkyBirdSoar>
okay thanks <3
SkyBirdSoar has quit [Client Quit]
Agent08 has quit [Remote host closed the connection]
Agent08 has joined #cinch
Agent08 has quit [Ping timeout: 245 seconds]
SkyBirdSoar has joined #cinch
<SkyBirdSoar>
well in my plugin m.bot.action(text) doesnt work
<SkyBirdSoar>
anyone can help
<SkyBirdSoar>
me*
<waxjar>
m.action_message "blablabla" ?
Agent08 has joined #cinch
<SkyBirdSoar>
no i want it to do /me messagr
<SkyBirdSoar>
message*
space has joined #cinch
<waxjar>
*action_reply, i mean
Whale|away has joined #cinch
SkyBirdSoar has quit [Ping timeout: 245 seconds]
Whale|away is now known as SkyBirdSoar
<SkyBirdSoar>
Sorry I lost connection minutes ago
<SkyBirdSoar>
anyone can teach me how do do /me in a plugin?
Spami has joined #cinch
SkyBirdSoar has quit [Quit: Quit]
space has quit [Remote host closed the connection]
space has joined #cinch
UberDragon has quit [Ping timeout: 240 seconds]
UberDragon has joined #cinch
<AJ-Lee>
If you wanted to add multiple authnames to m.user.authname does anyone know the syntax for that?
leftylink has quit [*.net *.split]
DonovanYoung has quit [*.net *.split]
Cinchy has quit [*.net *.split]
space has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
leftylink has joined #cinch
Cinchy has joined #cinch
DonovanYoung has joined #cinch
space has joined #cinch
space has quit [Read error: Connection reset by peer]
Spami has joined #cinch
Spami has quit [Remote host closed the connection]
Spami has joined #cinch
leftylink has quit [Ping timeout: 246 seconds]
<AJ-Lee>
dominikh: are you online?
Spami has quit [Read error: Operation timed out]
Agent08 has quit [Remote host closed the connection]
Agent08 has joined #cinch
Agent08 has quit [Ping timeout: 268 seconds]
postmodern has joined #cinch
leftylink has joined #cinch
Agent08 has joined #cinch
Agent08 has quit [Remote host closed the connection]
Agent08 has joined #cinch
Agent08 has quit [Ping timeout: 240 seconds]
rikai_ has quit [Read error: Connection reset by peer]