Anope IRC Services
Anope Development => Modules => Topic started by: Mec08 on January 07, 2011, 07:11:10 PM
-
Hello,
I'm french with "google translator" to write on the forum Anope.org,
I would appreciate any information or tip for this system to quickly chat irc
In the file ===> anope-1.8.3/src/nickserv.c I would like to add an execution of
Identified ok = run /chgident %nick .%nick <=== Pseudo01!.Pseudo01@hostname
Identified null = no /chgident
Does someone could tell me how to do this?
Thank you in advance, it is very important for a chat!
-
write a module or a bot, we do not support modifying the core..
when using a module, you can use the identify command anyways.
-
ok, it was to make a system with the "." and the system unrealircd: /mode #chan +I *!.*@*
Ns_identify_chgident with a "true" it would be: Pseudo02!.Pseudo02@host, and people can join the channel with mode #chan +i
I thought it was probably the easiest to modify the nickserv.c because I am not a writer nor as a module .c
-
hello, i'am débutant
nickserv.c :
void nsStartNickTracking(User * u)
{
NickCore *nc;
char buf[BUFSIZE];
*buf = '\0';
/* We only track identified users */
if (nick_identified(u)) {
nc = u->na->nc;
/* Release memory if needed */
if (u->nickTrack)
free(u->nickTrack);
/* Copy the nick core displayed nick to
the user structure for further checks */
u->nickTrack = sstrdup(nc->display);
const char *nc;
#define testruc "PRIVMSG #testt test: %d %s %nc" /*(example for test , problem, the real script would be that the next line)*/
/*#define testruc "CHGIDENT %Variable_nick .%variable_nick"*/ /* the real line that executes the Ident can be joined in the chan in +iI *!.*@* --- */
send_cmd(s_NickServ, testruc, u, u); (for test , good line)
}
}
I would love to learn how to return the "Char nick " in "string nick"
How he would do to "activate a chgident" as soon as someone on s'identify nickserv
Exemple:
Joins > Test (new user)
Test > he recorded his name on nickserv
Test > Nickserv identify Mot_de_passe
Test > Chgident turns directly .nick@... New code
Test > he can then join with the chan in +iI *!.*@*
System very well?
there is a problem with the "Char":
#define testruc "PRIVMSG #test test: %d %s %nc" /*(for test , problem)*/
I receive a nick returned Char:
test is 458951154
would have to "458951154" displays the username, is there anyone can learn to do that nickname?
Thank you in advance for your help
I'm sorry if you do not understand my English (google translator)
-
Do not modify nickserv.c you will get NO SUPPORT from us.
-
As I and chaz said: if you want to modify the core, we won't help you with that. Look into modules instead. there s plenty of example modules that perform actions on identify.
And without any knowledge of C you are not going to get anywhere.. for example: C does not have strings, it only has char.
Also, chgident is a client to server command, anope links to the ircd as a server so that command will not work. You need to use a server-to-server command instead. It s provided by anopes API as well.
-
ok, I have another idea but I do not manage to find the solution
Currently:
1) nickname with "Test"
2) The person goes on a website with login and password request, with Anope_mysql (it works perfectly well) - then on the page there is a very big "Button" written with "validate my nick on the chat server "- as soon as the person clicking the button that executes a command in real time on a eggdrop admin and added a vhost with /HostServ SETALL (it works perfectly well what EggDrop)
3) Problem: The command does not work: /HostServ SETALL Test .Test@ - I do not use a vhost with an ip
I would not put "host" but only an "ident" - does anyone know the command to put an "ident vhost" without putting a "host"?
works well, but not command interesting for me because I would just change the "ident" but keep the current hostname: /HostServ SETALL Test .Test@test.com
not work: /HostServ SETALL Test .Test@
not work: /HostServ SETALL Test .Test@* <== No host !
how it should be done to put an "ident" with HostServ without changing the "ip"?
Thank You
-
HostServ either does @host or ident@host, not just ident@ .. So says the src.
As you have been told, write a module that changes what you want changed. It's easy to get a module to change the vIdent of a user without touching their vHost .. So says the API.
If memory serves (Read: I'm too lazy to look it up.) ircd_catserv.c has most everything you need.
-
while it doesn't do exactly as you ask, have you considered whether hs_nethost (http://modules.anope.org/index.php?page=view&id=121) is an option?