Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: String replacement  (Read 2541 times)

0 Members and 1 Guest are viewing this topic.

GhosT

  • Guest
String replacement
« on: September 30, 2006, 12:06:59 PM »

Hi all,

I know that it is not so good to ask about some C code function is Anope support forum. But i really need it. I already search in google. It seems not lucky with me.

I am starting to learn some basic C and creating some anope modules (1.7.15) for my tiny network.

The problem I encountered is about howto replace some characters in a string with other characters regardless of uppercase or lowercase?

For example,
I have a string "%nick wanna kick %u azz from %chan",
I want to replace %nick with GhosT, and %u with Human, %chan with #Channel.

Thanks,
Logged

GhosT

  • Guest
(No subject)
« Reply #1 on: October 07, 2006, 11:28:10 AM »

Ok, i found it now. ;)
[Close]
Logged
Pages: [1]   Go Up