| View previous topic :: View next topic |
| Author |
Message |
kintaro Voice
Joined: 10 Oct 2009 Posts: 3
|
Posted: Sat Oct 10, 2009 7:20 am Post subject: Bot Responds to OPs but not to Founder |
|
|
hello to everyone,
I am new in IRC/Eggdrop Scene , and i have a little problem with a TLC-Script. When i call eggrop with "pfeif" as a Operator, Responds the Bot:
"*sofort zum Meister $nick rennt und die nächste Order abwartet*" in the Channel...
But if I do this as a founder of the bot does not respond to the command.
I have the code with "if isowner" and "if isfounder" but none of the commands worked, how can I move on to the bot operators and Founder hear?
Here is my Code:
| Code: |
######## pfeif #########
bind pubm - *pfeif* pub_pfeif
proc pub_pfeif {nick uhost hand chan arg} {
if {![isop $nick $chan]} {
puthelp "NOTICE $nick : Ich hör nur, wenn der Meister pfeift!"
return 0}
putchan $chan "\002 *sofort zum Meister $nick rennt und die nächste Order abwartet*"
putchan $chan "\002 Da bin ich $nick."
}
|
Many thanks in advance ...
Greetings Kintaro
PS: Sorry for my bad english, i am from Switzerland  |
|
| Back to top |
|
 |
TCL_no_TK Owner

Joined: 25 Aug 2006 Posts: 509 Location: England, Yorkshire
|
Posted: Sat Oct 10, 2009 3:26 pm Post subject: |
|
|
| Quote: | | have the code with "if isowner" and "if isfounder" but none of the commands worked, how can I move on to the bot operators and Founder hear? | Eggdrio dosen't have any isfounder or isowner.
Are you talking about Channel Status (modes) like +q? or something to do with Channel Services? _________________ TCL the misunderstood |
|
| Back to top |
|
 |
kintaro Voice
Joined: 10 Oct 2009 Posts: 3
|
Posted: Mon Oct 12, 2009 4:03 am Post subject: |
|
|
i have installed the Anope Services, Anope gives me Automaticly the +q Status...
Greetings Kintaro |
|
| Back to top |
|
 |
DjSlash Voice
Joined: 29 Jul 2009 Posts: 8 Location: Groningen, Netherlands
|
Posted: Mon Oct 12, 2009 7:15 am Post subject: |
|
|
| Eggdrop doesn't have a standard command that tell you if a channeluser has +q set. As far as I know, as long your ircd doesn't support it, you can't tell what extra modes a user has besides +o/+h/+v. |
|
| Back to top |
|
 |
arfer Master

Joined: 26 Nov 2004 Posts: 436 Location: Manchester, UK
|
Posted: Mon Oct 12, 2009 8:38 am Post subject: |
|
|
I'm not at all sure about how anope services functions but for some networks you can get the bot to send a /cs info #channelname
The notice response from chanserv is then captured, which can tell you the channel founder or if the channel is unregistered.
This is somewhat more difficult to code than having a simple direct Eggdrop Tcl command available such as 'isop', 'ishalfop' or 'isvoice'. _________________ I must have had nothing to do |
|
| Back to top |
|
 |
kintaro Voice
Joined: 10 Oct 2009 Posts: 3
|
Posted: Mon Oct 12, 2009 11:00 am Post subject: |
|
|
So there is no command for the mode q, but it would be theoretically possible that the bot will respond to a command such as "if is mode q"? If so, how would the correct syntax for this?
Sorry for these questions, I'm fairly new to matters bots, and my English is not so good ... : (
Greetings Kintaro |
|
| Back to top |
|
 |
TCL_no_TK Owner

Joined: 25 Aug 2006 Posts: 509 Location: England, Yorkshire
|
Posted: Mon Oct 12, 2009 1:04 pm Post subject: |
|
|
| kintaro wrote: | So there is no command for the mode q, but it would be theoretically possible that the bot will respond to a command such as "if is mode q"? If so, how would the correct syntax for this?
Sorry for these questions, I'm fairly new to matters bots, and my English is not so good ... : (
Greetings Kintaro | No There is not. _________________ TCL the misunderstood |
|
| Back to top |
|
 |
arfer Master

Joined: 26 Nov 2004 Posts: 436 Location: Manchester, UK
|
Posted: Tue Oct 13, 2009 8:00 am Post subject: |
|
|
Look in your bot installation doc/html subdirectory for tcl-commands.html
What you see is what you get (this is in addition to Core Tcl commands of course)
You can't simply invent Tcl commands because they seem to suit your needs, though you could possibly code them if you know Tcl well enough. _________________ I must have had nothing to do |
|
| Back to top |
|
 |
|