Page 1 of 1

what will u do if your module need "Simple" reply

Posted: Sat Nov 06, 2004 2:26 pm
by Xuefer
hey, i need your idea

i'm making module that SIMPLE reply to user
but i only used origin(in s_err.c) replies before
1. numeric? how? modify s_err.c?
2. privmsg? will make new query window
3. notice? same as 2, and mIRC will get BEEP

Posted: Sat Nov 06, 2004 5:46 pm
by aquanight
for numeric: sendto_one(sptr, ":%s %d %s %s", me.name, numeric_here, sptr->name, text_string_here)

for privmsg: sendto_one(sptr, ":%s PRIVMSG %s :%s", me.name, sptr->name, "Message here.")

for notice: sendto_one(sptr, ":%s NOTICE %s :%s", me.name, sptr->name, "Message here.")

For the numeric, if necessary, you can add extra format specifiers (sprintf() style), as long as you add the necessary arguments :P .

Posted: Sat Nov 20, 2004 5:46 am
by Xuefer
u're right, i was stupid to stick with "err_str()"