This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Autoidentify users flags

Help for those learning Tcl or writing their own scripts.
Post Reply
j
juanamores
Master
Posts: 317
Joined: Sun Mar 15, 2015 9:59 am

Autoidentify users flags

Post by juanamores »

I need the bot self identification flags to certain users.
I have a TCL that greets users when they join a channel depending the user flag.
When I create user (listener VIP) of my radio, the bot gives the flags +cf.
I wish that when you create these users the bot assigned a different password for each, and then identify them when entering any of the channels where the bot is located, without having to manually identification.

I do not want the flag +cf users who have to type::
/msg bot IDENT passw
or
/msg bot PASS passw
The bot greets depending the user flag, but the bot not greets if the user not identify.
Many do not understand commands....
If you do not understand my ideas is because I can not think in English, I help me with Google Translate. I only speak Spanish. Bear with me. Thanks :)
w
willyw
Revered One
Posts: 1205
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

Examine one user's entry in your bot, with:
.whois <handle>

and note the HOSTS line(s).

If you remove them, and add one back in this format:
nick!*@*

then that is what the bot will use to identify that user - just the nick.

This is very insecure, as any user can probably spoof another user's nick.
However, that is basically what (I think) you are asking for.
...something that happens automatically, with no password required from the user.
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !
j
juanamores
Master
Posts: 317
Joined: Sun Mar 15, 2015 9:59 am

Post by juanamores »

willyw wrote:Examine one user's entry in your bot, with:
.whois <handle>

and note the HOSTS line(s).

If you remove them, and add one back in this format:
nick!*@*

then that is what the bot will use to identify that user - just the nick.

This is very insecure, as any user can probably spoof another user's nick.
However, that is basically what (I think) you are asking for.
...something that happens automatically, with no password required from the user.
The users are already created, and have the +c flag, but to greet them must be identified with /msg bot IDENT passw or /msg bot PASS pasw.

Code: Select all

bind join c * join:fiel
proc join:fiel {nick host hand chan} {
   global botradio nombreradio sloganradio
   set fiel [encoding convertfrom utf-8 "$nombreradio $sloganradio  It gives you a warm welcome to its True Listener \0034 $nick \0031 in \0032 $chan."]
   putmsg $chan "$fiel"
}
If you do not understand my ideas is because I can not think in English, I help me with Google Translate. I only speak Spanish. Bear with me. Thanks :)
Post Reply